Two bodies of mass 4kg and 6kg are tied to the ends of a massless string. The string passes over a pulley which is frictionless (see figure). The acceleration of the system in terms of acceleration due to gravity (g) is :

(1) g/10
(2) g
(3) g/2
(4) g/5