document.write( "Question 214838: Car A is traveling at 20 miles per hour. Car B is one mile behind, following at 30 miles per hour. A fly can move 40 miles per hour. The fly begins on the front bumper of car B and flys back and forth between the two cars. How many miles will the fly travel before it is crushed in the collision?\r
\n" ); document.write( "\n" ); document.write( "Totally confused as to how to set it up. I know\r
\n" ); document.write( "\n" ); document.write( "Car A rate = 20/hr
\n" ); document.write( "Car B rate = 30/hr and distance = d-1
\n" ); document.write( "Fly rate hr
\n" ); document.write( "I assume time is constant
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #162303 by Alan3354(69443)\"\" \"About 
You can put this solution on YOUR website!
Car A is traveling at 20 miles per hour. Car B is one mile behind, following at 30 miles per hour. A fly can move 40 miles per hour. The fly begins on the front bumper of car B and flys back and forth between the two cars. How many miles will the fly travel before it is crushed in the collision?
\n" ); document.write( "------------------
\n" ); document.write( "Car B is gaining on car A at 10 mph (30 - 20). To overtake car A 1 mile ahead at 10 mph will take 1/10 hours.
\n" ); document.write( "----------
\n" ); document.write( "The fly will go back and forth at 40 mph for 1/10 of an hour.
\n" ); document.write( "40*(1/10) = 4 miles.
\n" ); document.write( "
\n" );