We can insert ankles of 40 and 60 to obtain the diagram below.
We have the diagram
Now we can use the Cosine Rule.
\[AC^2 = AB^2 + BC^2 - 2 \times AB \times BC \times cps B = 650^2 +40^2 -2 \times 650 \times 40 \times cos 100 =433130 \]
\[AC = \sqrt{433139}=658.1\]
The speed of the plane relative to the ground is 658.1 km/h. From the Sine Rule,
\[\frac{BC}{sin A} = \frac{AC}{sin B} \rightarrow sin A = \frac{BC sin B}{AC}=\frac{40 sin 100}{658.1}=0.05986 \rightarrow A = sin^{-1} (0.05986)=3.431\]
degrees.The plane will fly on a course of 063.431 degrees.