A Norman window has the shape of a rectangle surmounted by a semicircle. If the perimeter of the window is 24 feet, find the exact value of x (in ft) so that the greatest possible amount of light is admitted.