document.write( "Question 1012887: The number of gallons of coffee a mathematician drinks on any given day is inversely proportional to how much sleep he gets the night before. On Monday, he got 9 hours of sleep and drank 2 gallons of coffee. On Tuesday, he got 6 hours of sleep. How many gallons of coffee did he drink? \n" ); document.write( "
Algebra.Com's Answer #628999 by addingup(3677)\"\" \"About 
You can put this solution on YOUR website!
y= k/x where y is the amount of coffee, k is the constant, and x the hours of sleep.
\n" ); document.write( "-------------------------------------------------------------
\n" ); document.write( "Let's first find our constant, we know that for 9 hours sleep he drank 2 gallon:
\n" ); document.write( "2= k/9 multiply both sides by 9:
\n" ); document.write( "k= 18 this is our constant.
\n" ); document.write( "-------------------------------------------------------------
\n" ); document.write( "Now let's find y (the number of gallon)
\n" ); document.write( "y= 18/x
\n" ); document.write( "y= 18/6 = 3 gallon
\n" ); document.write( "
\n" );