Answer: The correct answer is "mass and distance".
Step-by-step explanation:
The expression from the gravitational force is as follows;

Here, F is the gravitational force, r is the distance between the two masses, G is universal gravitational constant and M, m are the masses.
The force of gravity is directly proportional to the masses but it has an inverse relationship with the square of the distance between the masses.
If the mass and distance will change then the force of gravity will get also change.
Therefore, gravity is dependent on two factors: mass and distance.
The correct option is mass and distance.