Two particles of masses m1 and m2, approach each other due to their mutual gravitational attraction only. Then,
The gravitational force acting between the two masses m1 and m2 is given by
FG=Gm1m2l2
Force on mass m1
F1=Gm1m2l2=m1a1
Where, a1= acceleration
⇒a1=Gm2l2⇒a1∝m2
And similarly, a2∝m1