Calculating the gravitational attraction between two objects requires taking the product of two masses and dividing by the square of the distance between them, then multiplying that value by G. The equation is F=Gm1m2/r2.
G=6.67 x 10-11 m3 kg-1s-2.
G is universal gravitational constant
acceleration of gravity ,g =9.8m/s2