Without loss of generality, I'm going to assume the following:
* Each mass moves in the positive axis directions -- in the positive x direction, and in the positive y direction.
So, with this information, we have the following:
With this, you should be able to find the x and y components of your velocity.
Finally, your answer will be .
Does this make sense? Can you finish this off?