Let Sp = Speed of the plane
Sw = Speed of the wind
Note,
Speed = Distance/Time
When the plane is flying with the wind, the speeds combine so (Sp + Sw)( 1 hour) = 180 miles
When the plane is flying against the wind, the speeds subtract so (Sp - Sw)(2 hours) = 180 miles
Solving together, we get Sp = 135 mph and Sw = 45 mph