document.write( "Question 309719: A gas stattion sells 4820 gallons of gas on a day when they charge $1.35 per gallon, and they sell 3880 gallons on a day when they charge $1.40. Find the equation for the line whose graph depicts this data. \n" ); document.write( "
Algebra.Com's Answer #221520 by alicealc(293)\"\" \"About 
You can put this solution on YOUR website!
price = x
\n" ); document.write( "number of gallons sold = y
\n" ); document.write( "y = ax + b
\n" ); document.write( "(1) 4820 = 1.35a + b
\n" ); document.write( "(2) 3880 = 1.40a + b
\n" ); document.write( "--------------------- (-)
\n" ); document.write( " 940 = -0.05a
\n" ); document.write( "a = 940/-0.05
\n" ); document.write( "a = 94000/-5 = -18800\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4820 = 1.35a + b
\n" ); document.write( "4820 = 1.35*(-18800) + b
\n" ); document.write( "4820 = -25380 + b
\n" ); document.write( "b = 4820 + 25380 = 30200\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "so, the line equation for the problem is: y = -18800x + 30200
\n" ); document.write( "
\n" ); document.write( "
\n" );