A builder is installing a Norman window made up of a rectangle topped by a semicircle. If the radius of the semicircle is r, and the rectangle is 3r high, find the area of the window as a function of r.