the relative velocity vector R goes from the head of vector A to the head of vector B ... in other words

(vector A) + (motion vector of B relative to A) = vector B

I assume you know how to add vectors graphically to get a picture of the situation.

you can solve for the magnitude of relative motion vector by using the law of cosines ...