A ship is sailing on a bearing of 215°from port until it is 100km due to south of port. How far does it sail to the nearest km

215 - 180 = 35 deg west of south

so south distance = d cos 35
so
d = 100 / cos 35

By the way you TAKE a bearing. You sail on a HEADING. Clue your textbook in.