David M. answered 07/18/20
Understanding why the Algebra works.
Right up front, were told that this is a linear function. A linear function is a function where the ratio between the change in y and the change in x is always the same for any 2 points on the graph or any two (x,y) value sets. This means that
(y-y0)/(x-x0)=m, where "m" is a constant (never changes), (x0,y0) is any specific given value set, or point on the line, and (x,y) is any point, or set of values, other than (x0,y0).
(y-y0)/(x-x0)=m
Multiply both sides of the equation by (x-x0)
y-y0= m(x-x0)
This is called point slope format of a linear equation and is a form you would typically memorize and jump to without the prior steps explaining how to get there. But understanding the steps makes it easier to know how to use and remember (or re-establish if we forget.
This is a good place to start determining actual values and plugging them in.
First, we have two points to determine m, the unchanging ratio between the change in y and the change in x.
(500-425)/(2.50-2.80)= -250.
Always remember to set up these change in y versus change in x values in the same direction, point 1 to point 2 for both x and y (or point 2 to point 1 for both x and y).. NEVER do EITHER point 1 to point 2 for y and point 2 to point 1 for x OR point 2 to point 1 for y and point 1 to point 2 for x.
Second we pick a specific (x0,y0). We have two given points to choose from, and it doesn't make any difference which one we choose, (x0,y0)=(2.50, 500) or (2.80,425). So, let's pick (2.50, 500) because they are easier numbers to work with.
y-y0= m(x-x0)
y-500= -250(x-2.50)
Distribute the -250.
y-500= -250x-(-250)2.50
Add 500 to both sides of the equation.
y= -250x-(-250)2.50+500
Simplify
y= -250x+625+500
y= -250x+1125
In the slope intercept form of linear equation, y=mx+b, our b=1125.
This means that, even if we gave away the gasoline, x=$0, we would not distribute more than 1125 gallons.
I like this approach because you start with an understanding or re-enforcement of what a linear relationship is, and then do not get involved with simultaneous equations; AND when one get's into calculus, it is the point slope form of linear equation that has most relevance.
y-y0= m(x-x0)
but in the form, adding y0 to both sides of the equation.
y= m(x-x0)+y0
And in function format:
f(x)=m(x-x0)+f(x0)