Two bodies of masses m1 and m2 attached to the ends of an extensible string passing fver a frictionless pulley such that both move vertically, the acceleration of bodies is

A ) m1m2/m1+m2g

B ) m1-m2/m1+m2 g

C ) m1+m2/m1-m2 g ✅

D ) 2m1m2/m1+m2 g