Let be the unit vectors along east and south.
The velocity of ship P, , along east.
The velocity of ship Q, , along south.
Velocity of the ship is given by,
Mangitude of velocity,
Thus, the velocity of ship Q w.r.t. P is 50 km/hr due 37° west of south.