\n" );
document.write( "A train averaged 120km/h for the first 80% of a trip and 90km/h for the whole trip. Find it's average speed for the last 20% of the trip.
\n" );
document.write( "Let distance traveled on entire journey be D
\n" );
document.write( "Then distance traveled on 1st 80% = .8D
\n" );
document.write( "Time taken to travel 1st 80% of journey = 
\n" );
document.write( "Let speed during last 20% of trip be S
\n" );
document.write( "Since distance traveled on last 20% = .2D, then
\n" );
document.write( "Time taken to travel last 20% of journey =
\r
\n" );
document.write( "\n" );
document.write( "Total distance: D
\n" );
document.write( "Total time: 
\n" );
document.write( "Average speed = Total distance, divided by total time, OR
\n" );
document.write( "
\n" );
document.write( "
----- Cross-multiplying
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( ".6DS + 18D = DS ------- Multiplying by LCD, S
\n" );
document.write( "D(.6S + 18) = D(S) ---- Factoring out GCF, D
\n" );
document.write( ".6S + 18 = S
\n" );
document.write( "18 = S - .6S
\n" );
document.write( "18 = .4S
\n" );
document.write( "S, or speed on 2nd leg of journey =
, or
km/h
\n" );
document.write( "