A church window consisting of a rectangle topped by a semicircle is to have perimeter p . Find the radius of the semicircle if the area of the window is to be maximum. Use pi to represent $\small{\pi}$.