document.write( "Question 783400: I have slept on a waterbed since the 70's. Last year I had to replace the mattress. The waterbed mattress measures 80 inches by 84 inches by 10 inches tall. I filled the matress to capacity with water that I thought was about 92 degrees, but after the bed was filled I found out that the actual temperature was only 74 degrees. It took 3 days for the waterbed heater to warm it up to 92 degrees. I had to sleep on the couch for 3 nights. \r
\n" ); document.write( "\n" ); document.write( "One thing that I could have done was drain out part of the water and replace it with 140 degree water. If I had done this, how many gallons of the \"colder\" water would I have had to drain out of the bed and replace with the 140 degree water, so that the temperature of the bed would have been 92 degrees? \r
\n" ); document.write( "\n" ); document.write( "Note: 231 Cubic Inches = 1 Gallon \r
\n" ); document.write( "\n" ); document.write( "Soooooo confused on this question. Any help understanding would be great, thank you!
\n" ); document.write( "

Algebra.Com's Answer #476771 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
Let x = amt of 74 degree water to be drain & amt of 140 degree water to be added
\n" ); document.write( "Find the no. of gallons total
\n" ); document.write( "\"%2880%2A84%2A10%29%2F231\" ~ 290 gallons
\n" ); document.write( ":
\n" ); document.write( "74(290-x) + 140x = 92(290)
\n" ); document.write( "21460 - 74x + 140x = 26680
\n" ); document.write( "-74x + 140x = 26680 - 21460
\n" ); document.write( "66x = 5220
\n" ); document.write( "x = 5220/66
\n" ); document.write( "x ~ 79 gallons
\n" ); document.write( ":
\n" ); document.write( "Drain 79 gallons of the 74 degree water out
\n" ); document.write( "Add 79 gallons of the 140 degree water
\n" ); document.write( "Should result in 92 degree water
\n" ); document.write( "
\n" );