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