Looking at the movement, we can see that the distance (d) from the start is actually the diagonal of a rectangle with the sides: 4km and 3km.
In order to calculate the distance, we will use the Pythagoras’ theorem: d^2 = (4km)^2 + (3km)^2 = 16 km^2 + 9 km^2 = 25 km^2 \to d = \sqrt{25 km^2} = 5 km