Let vectors , and represent velocities of wind, airplane with respect to air and airplane with respect to the ground respectively. Airplane's velocity is the resultant of sum of vectors and . So, we have . As the wind is blowing from the west and airplane needs to fly northward, we get a right triangle with hypotenuse (see the diagram below).
Using the Pythagorean theorem, we get the equation for the speed of airplane with respect to the ground:
The direction is determined by angle . It can be found from:
So, the plane must fly 78.5 degrees from west to north.