Answer:
a) 42 m/s, positive direction (to the east), b) 42 m/s, negative direction (to the west).
Explanation:
a) Let consider that Car A is moving at positive direction. Then, the relative velocity of Car A as seen by the driver of Car B is:
[tex]\vec v_{A/B} = \vec v_{A} - \vec v_{B}\\\vec v_{A/B} = 11 \frac{m}{s} \cdot i + 31 \frac{m}{s} \cdot i\\\vec v_{A/B} = 42 \frac{m}{s} \cdot i[/tex]
42 m/s, positive direction (to the east).
b) The relative velocity of Car B as seen by the drive of Car A is:
[tex]\vec v_{B/A} = \vec v_{B} - \vec v_{A}\\\vec v_{B/A} = -31 \frac{m}{s} \cdot i - 11 \frac{m}{s} \cdot i\\\vec v_{B/A} = - 42 \frac{m}{s} \cdot i[/tex]
42 m/s, negative direction (to the west).