I assume that you have already drawn the sketch.

The direction exactly to North correspond to a bearing of 0°. E = 90°. S = 180° and W = 270°.

You are dealing with a right triangle whose hypotenuse is known to you. Use Sine and Cosine function to calculate the length of the legs.

(Btw: Instead of cm read km)