.
\n" );
document.write( "\r\n" );
document.write( "Let x be the average speed of the slower train, in kilometers per hour.\r\n" );
document.write( "\r\n" );
document.write( "Then the speed of the faster train is (x+25) km/h.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The slower train takes
hours to travel 125 kilometers.\r\n" );
document.write( "\r\n" );
document.write( "The faster train takes
hours to travel 150 kilometers.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The condition says that the faster train takes 2 hours less:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "
-
= 2 hours. \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "It is yours \"time\" equation. // As soon as I got this equation, I just know the answer: x = 25. (I solved the equation in my head)\r\n" );
document.write( " // But I will pretend that I don't know the solution, and will solve it formally (i.e. \"honestly\")\r\n" );
document.write( "\r\n" );
document.write( "To solve it, multiply both sides by x*(x+25). You will get\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "125*(x+25) - 150*x = 2x*(x+25),\r\n" );
document.write( "\r\n" );
document.write( "125x + 125*25 - 150x = 2x^2 + 50x,\r\n" );
document.write( "\r\n" );
document.write( "2x^2 + 75x - 125*25 = 0,\r\n" );
document.write( "\r\n" );
document.write( "2x^2 - 50x + 125x - 125*25 = 0, <<<---=== starting from this line, I work to factor left side\r\n" );
document.write( "\r\n" );
document.write( "2x*(x-25) + 125(x-25) = 0,\r\n" );
document.write( "\r\n" );
document.write( "(2x+125)*(x-25) = 0.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The only positive root is x= 25, and it is the only solution to the problem.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Answer. The slower train average speed is 25 km/h. The faster train 25+25 = 50 km/h.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Check.
-
= 5 - 3 = 2. ! The time equation is satisfied !\r\n" );
document.write( "
\r
\n" );
document.write( "\n" );
document.write( "Solved and checked.\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( " \n" );
document.write( "