A system consists of block A and B each of mass m connected by a light spring of spring constant k as shown with block B in contact with a wall. The block A is moved towards B by a distance 3mgk from natural length of spring and then released from rest. Neglect friction anywhere.
Acceleration of centre of mass of system comprising A and B just after A is released is: