For the first one, the height difference is 3, and the length difference is 4, so we can use the Pythagorean Theorem!
A² + B² = C²
3² + 4² = C²
9 + 16 = C²
25 = C²
= 5
The answer to the first question is 5 units.
Next, we can use the same formula! The sides are 9 and 6 miles
A² + B² = C²
6² + 9² = C²
36 + 81 = C²
117 = C²
= 10.81
Hope this helps :)