I cant seem to get the right answer.

A Norman window has the shape of a rectangle surmounted by a semicircle. If the perimeter of the window is 20 ft, find the value ofxso that the greatest possible amount of light is admitted.

for my critical number i get 80/(4+pi) for my critical number of x which isnt working. (Headbang)