What two factor affect the gravitational force between two objects?

The mass of each object and the distance between the two objects. Newton's equation uses these factors and the universal constant for the attraction between two objects (G) and states that the force is equal to the product of G, the mass of the first object and the mass of the second object, over the distance between the two objects squared So F=(G.M.M)/R^2