the force of gravity depends on what
The forces of gravity between two objects depend on-- the product of the two massesand-- the distance between the centers of the two objects.