I only need the speed and direction of the wind.

An airplane has an airspeed of 300 mph, and it is traveling to the southwest. After two hours it is 282.9 miles from its starting point, at a compass heading of 228.6° from the starting point.

3 answers

What is your question?
Determine the speed and direction of the wind.

What is the Speed and direction of the wind?
I will assume that by compass heading you use North = 0 and rotate clockwise
so we have to given vectors:
"airplane has an airspeed of 300 mph, and it is traveling to the southwest"
-----> 600(cos315, sin315)
the resultant vector:
289(cos228.6,sin228.6)

ummmhhh, your question does not seem to make sense.
The plane has gone for 2 hours at 300 mph (about 600 miles), and after that time it is only 228.6 miles from the starting point ? That is some serious headwind.
Check your data.