Question 1187240

Flying to Kampala with a tailwind a plane averaged 185 km/h. On the return trip the plane only averaged 143 km/h while flying back into the same wind. What is the speed of the wind and the speed of the plane while in the air?

They are asking me to write a linear equation and solve.

X= could represent the speed of the wind  and Y=the speed of the plane while in the air.
not sure how to get the answer
=======================
The plane's airspeed is the average of the 2 groundspeeds.
= (185+143)/2 = 164 km/hr
================
Windspeed is the difference between airspeed and groundspeed.
164 - 143 = 21 km/hr