consider the west direction as positive direction of motion
V' = velocity of airplane relative to observer on ground = 580 mph
v = velocity of wind relative to observer on ground
V = average speed of airplane with no wind = 600 mph
relative velocity is given as
V' = V + v
inserting the values
580 = 600 + v
v = 580 - 600
v = - 20 mph
the negative sign indicates the direction of wind is opposite to direction of airplane , east
hence speed of wind is 20 mph in east direction.