Two masses of 10 kg and 20 kg respectively are connected by a massless spring as shown in figure. A force of 200 N acts on the 20 kg mass at the instant when the 10 kg mass has an acceleration of 12 towards right, the acceleration of the 20 kg mass is :