a town Y is 200km from town X in a direction 40°.How far is Y east of X

draw a diagram, and it should be easy to see that the answer is

200 sin40°