Let Home be the starting point and track Kanika's movements.
Starting from Home:
- Drives 6 km west
- Turns left (now facing south) and drives 3 km
- Turns left again (now facing east) and drives 10 km to reach Office
Place Home at coordinates (0, 0) and track the position after each movement:
Starting position: Home = (0, 0)
After 6 km west: Position = (-6, 0)
After turning left and driving 3 km south: Position = (-6, -3)
After turning left and driving 10 km east: Position = (-6 + 10, -3) = (4, -3)
Therefore, Office = (4, -3)
The shortest distance is the straight line from Home to Office.
Home: (0, 0)
Office: (4, -3)
Using the distance formula:
Distance=(x2−x1)2+(y2−y1)2
=(4−0)2+(−3−0)2
=16+9
=25
=5
Therefore, the shortest distance between home and office is 5 km.