The foyer planned as an addition to an existing church is designed as a regular octagonal pyramid. Each side of the octagonal floor has a length of 10 ft, and its apothem measures 12 ft. If 600 ft2 of plywood is needed to cover the exterior of the foyer (that is, the lateral area of the pyramid is 600 ft2), what is the height (in feet) of the foyer?