According to Newton's law of Gravitation, the force [tex]F[/tex] exerted between two bodies or objects of masses [tex]m1[/tex] and [tex]m2[/tex] and separated by a distance [tex]r[/tex] is equal to the product of their masses divided by the square of the distance:
[tex]F=G\frac{(m1)(m2)}{r^2}[/tex]
Where [tex]G[/tex]is the gravitational constant.
As we can see, this force is directly proportional to the product of the masses and inversely proportional to the square of the distance between them.
This means that the gravity force decreases when the distance between these two bodies increases, and increases when the masses of the bodies increases.