document.write( "Question 311078: Trains A & B are traveling in the same direction on parallel tracks. Tran A is traveling 80 miles per hour and Train B is traveling 90 miles per hour. Train A passes a station at 12:00am. If Train B passes the same station 12:40am, at what time will Train B catch up to Train A? When will Train B catch up with Train A? What is the time and if am or pm? Please help. Thank you. \n" ); document.write( "
Algebra.Com's Answer #222540 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
Train A speed = 80 mph
\n" ); document.write( "Train B 90 mph\r
\n" ); document.write( "\n" ); document.write( "Train A is ahead of train B at the station by 40 minutes.( 2/3 hours)\r
\n" ); document.write( "\n" ); document.write( "By the time train B reaches the station train A has traveled 80 * 2/3 miles
\n" ); document.write( "=160/3 miles to a point say P.\r
\n" ); document.write( "\n" ); document.write( "Let the distance from point P to the point where train B overtakes train A be x
\n" ); document.write( ".
\n" ); document.write( "Train B travels 160/3 + x miles in the same time the train A travels x miles\r
\n" ); document.write( "\n" ); document.write( "time taken by train A = x/80 hours
\n" ); document.write( "time taken by train B = x+160/3 / 90
\n" ); document.write( ".
\n" ); document.write( "x/80 = 3x+160 / 3 divided by 90
\n" ); document.write( "x/80 = 3x+160 /3 * 1/90\r
\n" ); document.write( "\n" ); document.write( "x/80= 3x+ 160 / 270
\n" ); document.write( "270x = 80(3x+160)
\n" ); document.write( "270x=240x +12800
\n" ); document.write( "30x= 12800
\n" ); document.write( "x=426.66 miles\r
\n" ); document.write( "\n" ); document.write( "time taken by train A t travel x miles = 426.66/80
\n" ); document.write( "=5.33 hours.
\n" ); document.write( "This is the same time taken by train B to cross train A\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );