1a (you don’t necessarily need to include the 1, so you can just put “a” if you’d like).
The answer is 41 miles
Imagine the diagonal distance is called c
Using Pythagorean theorem 40^2 + 9^2 = c^2
1600 + 81 = c^2
The square root of 1681 is 41
So c = 41