Hi!
Imagine a planet is alone in a two dimensional universe. It has a mass mp. Suddenly, the planet's moon appears out of nowhere. It appears with a distance r from the planet, has a mass mm and velocities vx in the x-direction and vy in the y-direction. The distances rx and ry are also known...