# How do I calculate the heading to steer in this example?

The answer is given as 040°(M), I'd just like to know the steps to calculate the answer.