A rectangular pasture of 40,000 square feet is to be fenced in. The pasture will have one side facing the road, and fence for that side costs $20/foot. On the other sides, fencing costs $15/foot. What should the demensions of the pasture be to minimize total fencing cost and what is that optimal cost?