The answer to your planets problem