document.write( "Question 433362: 2 cars start at the same time from towns a and b, and travel with constant but different speeds towards each other. They pass each other 70 km from town a, and continue to the opposite town, where they turn around without stopping. The cars pass each other again 40 km from town b. What is the distance between the 2 towns? \n" ); document.write( "
Algebra.Com's Answer #300464 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
Cars start at the same time from towns a and b, and travel with constant but
\n" ); document.write( " different speeds towards each other.
\n" ); document.write( " They pass each other 70 km from town a, and continue to the opposite town,
\n" ); document.write( " where they turn around without stopping.
\n" ); document.write( " The cars pass each other again 40 km from town b.
\n" ); document.write( " What is the distance between the 2 towns?
\n" ); document.write( ":
\n" ); document.write( "Let d = distance from a to b
\n" ); document.write( ":
\n" ); document.write( "First time they meet:
\n" ); document.write( "car 1 travels 70 km
\n" ); document.write( "car 2 travels (d-70)
\n" ); document.write( ":
\n" ); document.write( "Second time they meet
\n" ); document.write( "car 1 travels (d-70) + 40 = (d-30)
\n" ); document.write( "car 2 travels 70 + (d-40) = (d+30)
\n" ); document.write( ":
\n" ); document.write( "The ratio of the distances traveled by the two cars remain the same; therefore:
\n" ); document.write( "\"70%2F%28%28d-70%29%29\" = \"%28d-30%29%2F%28d%2B30%29\"
\n" ); document.write( "Cross multiply
\n" ); document.write( "70(d+30) = (d-70)(d-30)
\n" ); document.write( "70d + 2100 = d^2 - 30d - 70d + 2100
\n" ); document.write( "Subtract 2100 from both sides, arrange as a quadratic equation
\n" ); document.write( "d^2 - 100d - 70d = 0
\n" ); document.write( "d^2 - 170d = 0
\n" ); document.write( "Factor
\n" ); document.write( "d(d - 170) = 0
\n" ); document.write( "Two solutions
\n" ); document.write( "d = 0, obviously not the solution
\n" ); document.write( "and
\n" ); document.write( "d = 170 km distance between the towns
\n" ); document.write( "
\n" );