Please reason step by step, and put your final answer within \boxed{}.
A flagpole is of certain height. It breaks, folding over in half, such that what was the tip of the flagpole is now dangling two feet above the ground. The flagpole broke 7 feet from the base. How tall was the flagpole?
user