I do wonder, however...
I think that to calculate the distance to the moon you proceed by triangulating two observations made at the same moment from different parts of the Earth.
With that, you have the size of the moon too.
To the Sun, once you have the orbit of the moon, you can proceed. Either triangulation, or using the fact that both bodies have the same angular area.
However, the masses would have required precise values for G. With the orbits, you have accelerations, and these gill give you G*M, where M is the mass of the central body, for example the Sun, or the Earth if the moon is the orbiting body. With that you can have the relation between the masses of Sun, Earth and Moon.
With observations on Earth's surface, above and below, you can have the mass of the Earth, once you have the G*M for Earth, because you know the mass of your test body.
How do you do calculate the distance between Sun and planets, before Newton? If anybody knows, how did they do it, then?