The school, park and movie theater form a right triangle when shown on a map. The longest distance is between the school and the park. If there are 3.4 miles between the school and the movie theater and 5 miles between the park and the movie theater, how far is the school from the park?