Here speed of first train is slower than speed of second train. So if they catch up , the distance traveled will be same since they left the same station at different times.
But the time traveled will be different .
Let us say the two trains meet at time t ,
Distance = speed * time
Distance traveled by first train = 40 t
Since second train is leaving after three hours , so
Distance traveled by second train = 60(t-3)
As discussed earlier, distance traveled will be same, so
![40t =60(t-3)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/dvra7ac88nk2pv9c4wyh9wglxnxjyipd27.png)
distributing 60 over t-3
![40t =60t-180](https://img.qammunity.org/2019/formulas/mathematics/middle-school/9m82e58ozimwxlfeyqv6cskjygqd5gp9x1.png)
![60t -40t=180](https://img.qammunity.org/2019/formulas/mathematics/middle-school/bgf5dwk3qjpqn7c46wepxbosr65tlhglq5.png)
![20t =180](https://img.qammunity.org/2019/formulas/mathematics/middle-school/8gm3z9p6fdo74gcax9b6oliixjvzgie557.png)
![t =180/20](https://img.qammunity.org/2019/formulas/mathematics/middle-school/9767b7zje8vujvu7jespn4o2npb7y43a4j.png)
t=9
So the second train will meet the first at 9 p.m.