Newton law of gravitation is given by the formula
F=G(m1 m2/d^2)
Where F is the force between two masses m1 and m2 G is the gravitational constant and d is the distance between the two objects solve the formula for m1