

If two spheres are in contact with each other, then the distance between the two centres is 2r. Also given that the density of the material is same. Since R is same, volume is same. Hence, mass is the same and let it be m
Hence, force of gravitation F = GM1M2 / r2 = Gm2 / (2r)2
So F is proportional to m2 / r2
