I know I should be able to piece together some basic Newtonian equations for this, but I'm not sure where to start. I want to be able to choose one planet as the center and calculate its distance from another planet over time as they both rotate the sun.
First I need to even find equations for the motion of the planets, then... magic?
Thanks for any guidance!