Recall your d = rt, distance = rate * time
so... let's say, the plane's speed in still air is "p", and the speed of the wind is "w".
when the plane is travelling with the wind over those 1000 miles, is really not going "p" fast, is going " p + w " fast, since it's going with the wind.
now, when the plane is travelling against the wind, is not going "p" fast either, is going " p - w " fast, since the wind is subtracting speed from it.
bearing in mind he cover the 1000 miles as well as the 880 miles in 2 hrs each way.
what's the speed of the wind? well, 500 - p = w.