To calculate velocities with respect to different reference frames you need the Galilean composition of velocities. Instead of memorising formulae, we use a little arrow diagram: a graphical method that makes changing frame automatic, including — crucially — the centre-of-mass frame.