A farmer wishes to enclose a rectangular pen with area 100 square feet next to a road. The fence along the road is to be reinforced and costs $34 per foot. Fencing that coast $16 per foot can be used for the other three sides. What dimensions for the pen will minimize the cost to the farmer. What is the minimum cost?