document.write( "Question 974644: Two trains pass eachother in opposite directions. After 18 seconds they are 500m apart. If they travel atthe same speeds in the same direction, they are 50m apart in 15 seconds. Find the speeds of the two trains in km per hour. \n" ); document.write( "
Algebra.Com's Answer #596536 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
When traveling in opposite directions, it is as if one train is standing still and the other is moving at speed v1 + v2
\n" ); document.write( "When traveling in the same direction, it is as if one train is standing still and the other is traveling at speed v1 - v2
\n" ); document.write( "Since speed x time = distance, we can write two equations in two unknowns:
\n" ); document.write( "18(v1+v2) = 500 -> v2 = 500/18 - v1
\n" ); document.write( "15(v1-v2) = 50 -> v1 = 50/15 + v2 -> v1 = 50/15 + 500/18 - v1
\n" ); document.write( "Solving for v1, we get v1 = 110/9 meters per second
\n" ); document.write( "Converting to km/hr, we get 110/9 * 3600 sec/hr / 1000 m/km = 44 km/hr
\n" ); document.write( "So the other train is moving at v2 = (110/9 - 50/15)*3600/1000 = 32 km/hr
\n" ); document.write( "
\n" ); document.write( "
\n" );