A vector is a magnitude and direction. An airplane has its speed and direction (a vector).
The wind also has a speed and direction (a vector).
A general solution to the problem is
- calculate the wind and airplane speeds (velocities) independently
- break each of them into independent (orthogonal) vectors
- add (or subtract) the independent vectors
- combine the resulting independent vectors back into a single vector
- you now know the airplane's actual speed and direction (velocity)