We can think of the wind as a vector of velocity that adds or substract from the velocity of the plane.
When the plane flies downwind, the speed of the wind adds to the speed of the plane.
For a time t the plane can fly 255 miles in this condition. We then can express the average speed as 255/t.
If the speed is the sum of the speed of the plane and the speed of the wind, we can write:
Now, if the plane flies against the wind, the speed of the wind is substracted from the speed of the plane:
If we know tha the speed of the plane is vp = 230 mph, we can add both equations and then find t:
Now that we know the value of t we can use any of the two equations we have written to calculate the speed of the wind (vw):
Answer: the speed of the wind is 25 miles per hour.