Two masses M1 = 5 kg and M2 = 10 kg are connected at the ends of an inextensible string passing over a frictionless pulley as shown. When the masses are released, then the acceleration of the masses will be:
(where 'g' is acceleration due to gravity)
(A) g (B) g/2 (C) g/3 (D) g/4