Newton did not know the exact masses of celestial bodies like the Earth, Moon, and Sun, as these values were not determined until the Cavendish Experiment in 1797. Prior to this, only the product of mass and gravitational constant (GM) was known. However, approximate distances to the Moon and Sun were established by ancient Greeks, providing a foundation for Newton's work. The mass of the orbiting body is largely irrelevant in determining the size and shape of its orbit, as long as it is significantly less massive than the central body. This understanding allowed Newton to formulate his equations without precise mass measurements.