The two bodies of masses $m_{1}$ and $m_{2}\left(m_{1}>m_{2}\right)$ respectively are tied to the ends of a string which passes over a light frictionless pulley. The masses are initially at rest and released. The acceleration of the centre of mass is
(a) $\left(\frac{m_{1}-m_{2}}{m_{1}+m_{2}}\right)^{2} g$
(b) $\left(\frac{m_{1}-m_{2}}{m_{1}+m_{2}}\right) g$
(c) $g$
(d) zero