Let the starting point be the origin O at coordinates (0, 0).
A and B walk in opposite directions, each traveling 20 m:
- A walks 20 m in one direction (say, east)
- B walks 20 m in the opposite direction (west)
Positions after first movement:
- A is at (20, 0)
- B is at (-20, 0)
A turns right and walks 15 m:
- A was walking east, so turning right means walking south
- A's new position: (20, -15)
B turns left and walks 15 m:
- B was walking west, so turning left means walking south
- B's new position: (-20, -15)
The distance between A at (20, -15) and B at (-20, -15) is:
d=(20−(−20))2+(−15−(−15))2
d=(40)2+(0)2
d=1600
d=40 m
Therefore, A and B are 40 m apart from each other.