========================================================
Explanation:
Since f(x) is linear, this means f(x) = mx+b
Let's plug in x = 6
[tex]f(x) = mx+b\\f(6) = m*6+b\\f(6) = 6m+b[/tex]
Repeat for x = 2
[tex]f(x) = mx+b\\f(2) = m*2+b\\f(2) = 2m+b[/tex]
Now subtract the two function outputs
[tex]f(6)-f(2) = (6m+b)-(2m+b)\\f(6)-f(2) = 6m+b-2m-b\\f(6)-f(2) = 4m\\[/tex]
The b terms cancel out which is very handy.
Set this equal to 12, since f(6)-f(2) = 12, and solve for m
[tex]f(6)-f(2) = 12\\4m = 12\\m = 12/4\\m = 3\\[/tex]
So the slope of f(x) is m = 3
-------------------------------------------------------------------------
Next, plug in x = 12
[tex]f(x) = mx+b\\f(12) = m*12+b\\f(12) = 12m+b[/tex]
We can then say:
[tex]f(12)-f(2) = (12m+b)-(2m+b)\\f(12)-f(2) = 12m+b-2m-b\\f(12)-f(2) = 10m\\[/tex]
Lastly, we plug in m = 3
[tex]f(12)-f(2) = 10m\\f(12)-f(2) = 10*3\\f(12)-f(2) = 30\\[/tex]