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