It might be instructional if you calculate the accelerations of the the moon due to the sun's gravitational pull and the earth due to the sun's gravitational pull.
This is why they are in approximately the same orbit and it reveals an interesting feature of gravitation.