A 35 foot wire is secured from the top of a flagpole to a stake in the ground. If the stake is 14 ft from the base of the flagpole, how tall is the flagpole?