A trapezoid has an area of 24 square meters. The length of the bases of the trapezoid are 5 meters and 7 meters. What is the height of the trapezoid?