A travels 20 kilometres to the north-east.
B travels 15 kilometres east and afterwards 12 kilometres north.
To detect:
The gap between A as well as B
Solution:
We can observe from the information that overall distance reached by A equals the movement of B from that beginning location.
A travels 20 kilometres to the north-east.
That is, in any diagonal line A goes for 20 kilometres.
This seems to be nothing more than A displacement.
B, on the other hand, travels 15 kilometres east and afterwards 12 kilometres north.
For example, B travels 15 kilometres in a perfect line towards the right, immediately turns 900 degrees north and travels 12 kilometres.
As a result, the movement for B would be 20 kilometres along that North East Direction = Distance walked by A = Displacement for A from the beginning location.
As a result, they both end at the same spot.