First we have to find a point where the resultant field due to both is zero.Let the point P be at a distance x from centre of bigger star.
⇒
G(16m)
x2
=
GM
(10a−x)2
⇒x=8a(from O1)
i.e., once the body reaches P, the gravitational pull of attraction due to M takes the lead to make m move towards it automatically as the gravitational pull of attraction due to 16M vanishes i.e., a minimum KE or velocity has to be imparted to m from surface of 16M such that it is just able to overcome the gravitational pull of 16M. By law of conservation of energy