A traffic helicopter flies 10 miles due north and then 24 miles due east. Then the helicopter flies in a straight line back to its starting point. What was the distance of the helicopter's last leg back to its starting point?