A window with a 20-foot perimeter (frame) is to be comprised of a semi-circular stained glass pane above a rectangular clear pane as shown in the accompanying figure. Clear glass costs $3 per square foot and stained glass costs $10 per square foot. Express the cost of the window as a function of the radius of the stained glass pane.