A window is constructed from a rectangular sheet of glass of height h with a semicircular piece of glass at each end of radius r.
The cost per square foot for the rectangular part is three times the cost per square foot of the semicircular parts.
What are the dimensions of the most expensive window having a perimeter of 20 feet ?