A pigeon was sitting 40 feet from the base of a telephone pole and flew 50 feet to reach the top of the pole. How tall is the telephone pole?