document.write( "Question 500351: I need to know the formula to get this answer. \r
\n" ); document.write( "\n" ); document.write( "Mike drove uphill to his school and it took 3 hours. He returned downhill only going 5mph faster and made it in two hours. What is the average rate of speed?
\n" ); document.write( "

Algebra.Com's Answer #338125 by Alan3354(69443)\"\" \"About 
You can put this solution on YOUR website!
I need to know the formula to get this answer.
\n" ); document.write( "d = r*t is the formula
\n" ); document.write( "--------------
\n" ); document.write( "Mike drove uphill to his school and it took 3 hours. He returned downhill only going 5mph faster and made it in two hours. What is the average rate of speed?
\n" ); document.write( "--------------
\n" ); document.write( "d = r*t
\n" ); document.write( "d = r*3
\n" ); document.write( "d = (r+5)*2
\n" ); document.write( "3r = 2(r+5)
\n" ); document.write( "r1 = 10 mi/hr uphill
\n" ); document.write( "r2 = 15 mi/hr downhill
\n" ); document.write( "-------------
\n" ); document.write( "Here's a formula:
\n" ); document.write( "avg speed = 2*r1*r2/(r1 + r2)
\n" ); document.write( "= 2*10*15/25 = 300/25
\n" ); document.write( "= 12 mi/hr
\n" ); document.write( "--------------
\n" ); document.write( "Notice that the distance is irrelevant, but they have to be equal for the formula to apply.
\n" ); document.write( "--------------
\n" ); document.write( "A different method, without the formula:
\n" ); document.write( "d = 10*3 = 30 miles
\n" ); document.write( "round trip = 60 miles
\n" ); document.write( "Total time = 3 hr + 2 hr = 5 hours
\n" ); document.write( "Avg speed = 60/5 = 12 mi/hr same answer
\n" ); document.write( "----------------------------
\n" ); document.write( "
\n" ); document.write( "
\n" );