Running from the top of a flagpole to a hook in the ground there is a rope that is 41 feet long. If the hook is 9 feet from the base of the flagpole, how tall is the flagpole?