Pat races at 10 miles per hour, while Kim races at 9 miles per hour. When they both ran in the same long-distance race last week, Pat finished 8 minutes ahead of Kim. What was the length of the race, in miles? Briefly describe your reasoning.