So we have two planes flying toward each other. Let's use v for the speed of the slower plane. Then the speed of the faster plane is v+40. If we pass to the reference system of the slower plane we have that its speed is 0 and the speed of the other plane is v+v+40=2v+40. So basically we have a problem where one of the planes is stationary whereas the other approaches at 2v+40mph and it takes it 2 hours to travel 1180 miles. Remember that the speed is equal to the distance traveled divided by the time it took the plane to travel that distance. Then we get:
![\begin{gathered} 2v+40(mi)/(h)=(1180mi)/(2h)=590(mi)/(h) \\ 2v=590(mi)/(h)-40(mi)/(h)=550(mi)/(h) \\ v=(550(mi)/(h))/(2)=275(mi)/(h) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/mec0ct6rx08ipl8ly8mmadniq44kw7brsp.png)
Then we get:
![v+40(mi)/(h)=275(mi)/(h)+40(mi)/(h)=315(mi)/(h)](https://img.qammunity.org/2023/formulas/mathematics/college/jipsmvafba7zcdhcrvg3sjgwuvya1050d5.png)
Then the speeds of the planes are 275mph and 315mph.