document.write( "Question 1037212: At a price of $3.10 a gallon, the weekly demand for gas is 42 gallons. If the price rises to $3.25 a gallon, the demand drops to 39 gallons. Find the formula for quantity of gas demanded in terms of “p”, the price per gallon, assuming the demand is linear. \n" ); document.write( "
Algebra.Com's Answer #651939 by Aldorozos(172)\"\" \"About 
You can put this solution on YOUR website!
Equation of a line when we have two points on the line: y-y1 = [(x2-x1)/(y2-y1]/(x-x1)
\n" ); document.write( "http://www.coolmath.com/algebra/08-lines/12-finding-equation-two-points-01\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "y-42 = [(3.25 -3.10)/39-42](x-3.1)
\n" ); document.write( "y-42 = .15/(-3) *(x-3.1)
\n" ); document.write( "y-43 = -.05(x-3.1)This is an equation of a line.
\n" ); document.write( "
\n" ); document.write( "
\n" );