Which maths is employed by NASA?
We are aware of the separations between the planets from Earth thanks to trigonometry. If an astronaut already knows the distance from a specific location, they can use trigonometry to determine the unknown distances.