The gravitational force depends on two things, mass and distance.
The more mass, the higher the atracttion force, the closer, the more the atracttion will affect the object. The less mass, the lower the atracttion force, the more far, the less the actracttion will affect the object.
Hope it helped,
Happy homeowrk/ study/ exam!