Imagine the paths as a right triangle with one leg measuring 8 miles and the other 5. You need to find the hypotenuse using the pythagorean theorem, so take 8 squared + 5 squared equals x squared, which gives you 64+25=89, then find the square root of 89 which is 9.433981132