document.write( "Question 397647: Donna drove half the distance of a trip at 40 mi/h. At what speed would she have to drive for the rest of the distance so that the average speed for the entire trip would be 45 mi/h? \n" ); document.write( "
Algebra.Com's Answer #281732 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
Let d = total distance
\n" ); document.write( "x = speed in the 2nd half of trip
\n" ); document.write( "==> length of time in 1st half of trip = \"%28d%2F2%29%2F40+=+d%2F80\"
\n" ); document.write( "length of time in 2nd half of trip = \"%28d%2F2%29%2Fx++=d%2F%282x%29\"
\n" ); document.write( "Then\r
\n" ); document.write( "\n" ); document.write( "\"d%2F%28d%2F80++%2B+d%2F%282x%29%29+=+45\"
\n" ); document.write( "\"1%2F%281%2F80++%2B+1%2F%282x%29%29+=+45\"
\n" ); document.write( "\"1%2F45+=+1%2F80++%2B+1%2F%282x%29\"
\n" ); document.write( "\"7%2F720+=+1%2F%282x%29\" ==> \"x+=+360%2F7%0D%0A\" mi/hr.
\n" ); document.write( "
\n" );