The speed at which an aircraft flies is the sum of the speed of the aircraft and the wind. For example, if the speed of the aircraft is 100 miles per hour and the speed of the wind is 50 miles per hour, then the speed at which the aircraft flies is 100 mph + 50 mph = 150 mph.

In your example, the first aircraft travels 1062 miles with the wind at its tail. Let be the time in which the first aircraft travels the 1062 miles. Then, the rate at which the first aircraft flies is

The rate at which the aircraft flies is the sum of the speed of the aircraft and the speed of the wind . Therefore,

The speed of the aircraft is given as 200 mph, so

(1)

Similarly, the rate at which the second aircraft flies is

(2)

(Note the speed of the wind is subtracted from the speed of the second aircraft aircraft because the second aircraft flies against the wind.)

We have a system of equations (equations (1) and (2)), which can be solved for (the speed of the wind).