Two masses 8 kg and 12 kg are connected at the two ends of a light inextensible string that goes over a friction less pulley. Find the acceleration of the masses and the tension in the string when the masses are released