Two blocks A and B of masses 1 kg each, are lying on a smooth horizontal surface. A spring of force constant k=200 N/m is fixed at one end of the block A. Block B collides with block A with an initial velocity of v=2.0 m/s. Find the maximum compression in the spring.