Step-by-step explanation:
The Newton's law of gravitation gives the force acting between two bodies when they are separated by some distance. Mathematically, it is given by :

It shows that the gravitational force is directly proportional to the product of masses of two bodies and inversely proportional to the square of distance between them.
So, as the mass of bodies increases, the gravitational force increases and with the increase of distance between them, the gravitational force decreases.