The triangle drawn by connecting the starting point, the point 20 meters west of the starting point, and the final point where Jimmy ended up is a right triangle.
You can use the Pythagorean Theorem to find the direct straight-line distance for Jimmy. The Pythagorean Theorem states that the square of the hypotenuse (the direct line distance) is equal to the sum of the squares of the other two sides. In this case, the direct line distance would be the square root of (20^2 + 25^2) = sqrt(400 + 625) = sqrt(1025) = 32 meters.
If Jimmy took the direct line, he would have traveled approximately 32 meters.