See the attached figure.
E direction is a line which is parallel to x-axis. (blue line).
NW direction lies on a line that is at an angle of 135 degrees to the positive direction of the x axis. (red lines).
Intersection between red line and blue line will give the coordinates of the vessel in distress location which is point C (3,2)