A flagpole broke in a storm. 7 meters are still sticking straight out of the ground, where it snapped, but the remaining piece has hinges over and touches the ground at a point 24 meters away horizontally. How tall was the flagpole before it broke?