The kinetic energy of the particle at \displaystyle A is converted to potential energy at \displaystyle B.