Answer:
Explanation:
Let's call the length of the slower train L1 and the length of the faster train L2. Then, we have:
L1 = 150 meters
L2 = 250 meters
Let's also call the speed of the slower train S1 and the speed of the faster train S2. We are trying to find the value of S1.
When the trains are moving in the same direction, the faster train is "catching up" to the slower train, so the relative speed between them is the difference between their speeds:
relative speed = S2 - S1
The faster train needs 40 seconds to cross the slower train, which means that it covers the total distance between the two trains (L1 + L2) in 40 seconds at the relative speed:
L1 + L2 = (S2 - S1) * 40
When the trains are moving in opposite directions, they are getting closer to each other, so the relative speed between them is the sum of their speeds:
relative speed = S1 + S2
The two trains pass each other in 8 seconds, which means that they cover the total distance between them (L1 + L2) in 8 seconds at the relative speed:
L1 + L2 = (S1 + S2) * 8
Now we have two equations with two unknowns (S1 and S2), which we can solve using algebra. First, we can rearrange the first equation to get S2 in terms of S1:
S2 = (L1 + L2 + S1 * 40) / 40
Then we can substitute this expression for S2 into the second equation and simplify:
L1 + L2 = (S1 + (L1 + L2 + S1 * 40) / 40) * 8
L1 + L2 = (S1 * 9 + (L1 + L2) / 5)
S1 = (5 * (L1 + L2)) / (9 * 8)
S1 = 13.89 m/s (approx)
Therefore, the speed of the slower train is approximately 13.89 meters per second.