Two blocks A and B of mass M and 2M respectively, are hanging from a ceiling by means of a massless spring and a light string as shown. If the string between the blocks is suddenly cut and the downward acceleration is taken positive, then what will be the acceleration of the block A and B?