document.write( "Question 801179: two cars leave an intersection, one traveling west and the other south. After some time the slower car is 7 mi nearer to the intersection than the faster car. At that time, two cars are 17 mi apart. How far did each car travel? \n" ); document.write( "
Algebra.Com's Answer #483483 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
West and South are directions perpendicular to each other.
\n" ); document.write( "We assume that the trajectories of the two cars are perpendicular straight lines.
\n" ); document.write( "(Those must be long, straight North-South and East-West roads, like the ones I have seen in South Dakota).
\n" ); document.write( "We can call one car the slower car, and the other car the faster car, but there is no way to know which one was going West and which one was going South.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "At a certain time after both cars have left the intersection, the distances traveled after leaving the intersection, and the distance between the two car, all measured in miles, are as follows:
\n" ); document.write( "\"x\"= distance traveled by the faster car
\n" ); document.write( "\"x-7\"= distance traveled by the slower car
\n" ); document.write( "\"17\"= distance between the two cars
\n" ); document.write( "It's either or
\n" ); document.write( "Either way, we have a right triangle with leg lengths \"x\" and \"x-7\" and hypotenuse \"17\".
\n" ); document.write( "According to the Pythagorean theorem,
\n" ); document.write( "\"x%5E2%2B%28x-7%29%5E2=17%5E2\"
\n" ); document.write( "Solving that equation for \"x\":
\n" ); document.write( "\"x%5E2%2B%28x-7%29%5E2=17%5E2\"
\n" ); document.write( "\"x%5E2%2Bx%5E2-14x%2B49=289\"
\n" ); document.write( "\"2x%5E2-14x%2B49-289=0\"
\n" ); document.write( "\"2x%5E2-14x-240=0\"
\n" ); document.write( "Dividing both sides of the equation by 2, we simplify to get
\n" ); document.write( "\"x%5E2-7x-120=0\"
\n" ); document.write( "Factoring \"x%5E2-7x-120=%28x-15%29%28x%2B8%29\", we transform the equation into
\n" ); document.write( "\"%28x-15%29%28x%2B8%29=0\" to solve it by factoring.
\n" ); document.write( "The solutions for that equation are
\n" ); document.write( "\"x=-8\" derived from \"x%2B8=0\" (which does not make sense, because we expect a positive distance \"x\")
\n" ); document.write( "and \"highlight%28x=15%29\" from \"x-15=0\"
\n" ); document.write( "Since \"x=15\", \"x-7=15-7\" --> \"highlight%28x-7=8%29\"
\n" ); document.write( "The cars have traveled \"highlight%288%29\" miles and \"highlight%2815%29\" miles away from the intersection.
\n" ); document.write( "
\n" ); document.write( "OTHER OPTIONS:
\n" ); document.write( "\"x%5E2-7x-120=0\" can also be solved by applying the quadratic formula, or by \"completing the square.\" For this particular equation, the quadratic formula may be more popular.
\n" ); document.write( "The quadratic formula says that the solutions to an equation of the form
\n" ); document.write( "\"ax%5E2%2Bbx%2Bc=0\" are given by
\n" ); document.write( "\"x+=+%28-b+%2B-+sqrt%28+b%5E2-4%2Aa%2Ac+%29%29%2F%282%2Aa%29+\"
\n" ); document.write( "For \"x%5E2-7x-120=0\" \"a=1\", \"b=-7\", and \"c=-120\", so
\n" ); document.write( "
\n" ); document.write( "Since the negative solution \"x=%287-23%29%2F2\" does not make sense as a distance,
\n" ); document.write( "\"x=%287%2B23%29%2F2\" --> \"x=30%2F2\" --> \"highlight%28x=15%29\"
\n" ); document.write( "
\n" );