document.write( "Question 771246: Two trains start at the same time from two stations and proceed towards each other with speeds 40 km/hr and 45 km/hr respectively.When they meet it is found that one train has traveled 40 km more than the other. Find the distance between the two stations? \n" ); document.write( "
Algebra.Com's Answer #470181 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+d+\" = the distance the slower train travels in km
\n" ); document.write( "\"+d+%2B+40+\" = the distance the faster train travels in km
\n" ); document.write( "-----------
\n" ); document.write( "\"+d+=+40t+\"
\n" ); document.write( "\"+d+%2B+40+=+45t+\"
\n" ); document.write( "----------------
\n" ); document.write( "\"+t+=+d%2F40+\"
\n" ); document.write( "By substitution:
\n" ); document.write( "\"+d+%2B+40+=+45%2A%28+d%2F40+%29+\"
\n" ); document.write( "\"+40d+%2B+1600+=+45d+\"
\n" ); document.write( "\"+5d+=+1600+\"
\n" ); document.write( "\"+d+=+320+\"
\n" ); document.write( "The distance between the stations is
\n" ); document.write( "\"+d+%2B+d+%2B+40+=+320+%2B+320+%2B+40+\"
\n" ); document.write( "\"+2d+%2B+40+=+680+\"
\n" ); document.write( "680 km
\n" ); document.write( "----------
\n" ); document.write( "check:
\n" ); document.write( "\"+d+=+40t+\"
\n" ); document.write( "\"+320+=+40t+\"
\n" ); document.write( "\"+t+=+8+\"
\n" ); document.write( "and
\n" ); document.write( "\"+d+%2B+40+=+45t+\"
\n" ); document.write( "\"+320+%2B+40+=+45t+\"
\n" ); document.write( "\"+45t+=+360+\"
\n" ); document.write( "\"+t+=+8+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );