document.write( "Question 1074799: Justin recently drove to visit his parents who live 864 miles away. On hi way there his average speed was 21 miles per hour faster than on his way home. If Justin spent a total of 24 hours driving, find the two rates. \n" ); document.write( "
Algebra.Com's Answer #689474 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
speed there was x+21 mph and time was 864/x+21hours. S*t=distance
\n" ); document.write( "speed back was (x) mph and time was 864/x hours.
\n" ); document.write( "The two times add to 24
\n" ); document.write( "so 864/x+864/(x+21)=24
\n" ); document.write( "multiply both sides by x(x+21)
\n" ); document.write( "864(x+21)+864(x)=24(x(x+21))
\n" ); document.write( "864x+18144+864x=24x^2+504x
\n" ); document.write( "0=24x^2-1224x-18144
\n" ); document.write( "divide by 24
\n" ); document.write( "x^2-51x-756=0
\n" ); document.write( "(x-63)(x+12)=0
\n" ); document.write( "x=63 mph, only positive root speed back, which took 864/63 or 13.71 hours.
\n" ); document.write( "x+21=84 mph, which took 10.29 hours there.
\n" ); document.write( "Total is 24 hours.
\n" ); document.write( "
\n" ); document.write( "
\n" );