Let the length of the race be d miles.
Race time for Pat = d/10
Race time for Kim = d/9
If we subtract 8 minutes from the time for Kim, the result will equal the time for Pat:
\(\frac{d}{10}=\frac{d}{9}-\frac{8}{60}\)
This equation simplifies to:
\(\frac{d}{10}=\frac{5d-6}{45}\)
Cross-multiplying we get:
45d = 50d -60
60 = 5d
d = 12 miles