Answer:
First, when he walks, we can see in the image that between the school and his house he must walk 4 times a distance of 0.5km, so this is a total of 4¨*0.5km = 2km.
Then he needs to walk 2km.
Now if he has a jet-pack, he can ignore the buildings and just take the shorter path, here we can draw a triangle rectangle, in such a way that the hypotenuse of this triangle is the distance between the home and the school.
One of the catheti is the vertical distance (two blocks of 0.5km, so this catheti has a length of 2*0.5km = 1km), and the other one is the horizontal distance, also 1km.
The actual distance of this path is given by the Pythagorean's theorem:
A^2 + B^2 = H^2
Where A and B are the cathetus, and H is the hypotenuse, then:
H^2 = 1km^2 + 1km^2
H = (√2)km = 1.41km.
Now, in the case that he has a jet-pack, he can actually go to the school using this hypotenuse line as his path, in this case the distance and the displacement would be the same.
This is because the definitions of distance and displacement are:
Distance: "how much ground an object has covered"
Displacement: "Difference between the final position and the initial position"
When he walks, the distance is 2km and the displacement is 1.41km , but when he uses the jet pack, the distance is equal to the displacement, both are 1.41km.