Thus, the gravitational force F between two bodies is directly proportional to the product of masses of those bodies. Here, since the product m1m2 is greater for the sun and the moon than that of the earth and the moon (because mass of the sun is greater than that of earth), therefore F exerted by the sun on the moon is greater than the F exerted by the earth on the moon.