Solution:
The distance covered by the particle is and the displacement is when it reaches B. (use )The distance covered is the length of path travelled by the particle and is given by
Distance
Displacement is the shortest distance between the initial and the final positions of the particle.
Displacement