Well, I would suggest that you start by actually doing what it says to do- "Sketch a vector diagram". While it isn't absolutely necessary, it is probaby best to set this up as if it were on a "compass rose"- with "north" upward on your paper. Now draw a line at "a bearing of 340º (that would be 360- 340= 20º to the left of straight up) representing the speed by making its length "320" in whatever units you want. Draw a little "arrowhead" at the tip of that to indicate direction. That is the "desired resultant". Draw a line representing the wind at 22º (22 degrees to the right of straight up) with length 34 of the same units. Connect the tips of those two "vectors". That last line is the "plane's heading".
Notice that gives you a triangle. One side of the triangle is 20 degrees to the left of north, another 22 degrees to the right so the angle between them is 20+ 22= 42º and those sides have lengths 340 and 34 (units of "knots" but you can treat them like lengths). That is, you have a triangle with the lengths of two sides and angle between them. You can use the cosine law, (where C is the angle opposite side c), to find the "length" of the third side. You can then find the other two angles using the sine law: .