A window is in a shape of an isosceles trapezoid and has an area of 24 square feet. It is 4 feet high and 8 feet wide at the bottom. How wide is the window on top?