Step-by-step explanation:
According to the Newton's law of universal gravitation, the force between two bodies is given by :
..........(1)
are masses
d is the distance between objects
From equation (1), the force of gravity increases when distance decreases or mass increases and the force of gravity decreases when mass decreases or distance increases.