Let A move in the +x direction. Then vAx = +21 m/s and vBx = 0.
vCMx = (mA * vAx + mB * vBx)/(mA + mB)
vCMx = (2 kg * 21 m/s + 0)/7 kg = 6 m/s
Velocity (x-component) of A relative to the center of mass is
vA,CM = vA - VCM = 21 m/s - 6 m/s = 15 m/s
Velocity (x-component) of B relative to the center of mass is
vB,CM = vB - VCM = 0 m/s - 6 m/s = -6 m/s
15 m/s, -6 m/s: Answer is C