What did i do wrong?

Answer:
4 km
Step-by-step explanation:
You found the hypotenuse correctly.
The questions asks what is the difference between the distance in the usual route, which is 12 km + 5 km = 17 km
and the new route, which is 13 km
17 -13 = 4 km