When plane is flying in tail wind condition we will have
[tex]V_{plane} + v_{wind} = \frac{distance}{time}[/tex]
[tex]150 mph + v_{wind} = \frac{distance}{2}[/tex]
Now during return journey we can say its would be head wind now
[tex]V_{plane} - v_{wind} = \frac{distance}{time}[/tex]
time = 2 + 1 = 2 hours
[tex]150 - v_{wind} = \frac{distance}{3}[/tex]
now add two equations
[tex]300 = \frac{5*distance}{6}[/tex]
distance = 360 miles
now from above equation again
[tex]v_{wind} = 30 mph[/tex]