Step 1: Determine Rakesh's displacement.
Assume the starting point is the origin.
- 5km South: Net displacement: -5 km (South).
- 2km West: Net displacement: -5 km (South), -2 km (West).
- 5km North: Net displacement: 0 km (South/North), -2 km (West).
- 5km West: Net displacement: 0 km (South/North), -7 km (West).
Step 2: Calculate final location and distance.
Final position: 7 km West of the start.
Shortest distance: 7 km.