A block ‘A’ of mass m1 hits horizontally the rear side of a spring (ideal) attached to a block B of mass m^2 resting on a smooth horizontal surface. After hitting