What is the function rule for the line?

For this case we have that the equation of a line in the slope-intersection form is given by:
[tex]y = mx + b[/tex]
Where:
m: It's the slope
b: It is the cutoff point with the y axis
We can find the slope using two points that cross the line.
[tex](x1, y1) :( 1,2)\\(x2, y2) :( 2,6)\\m = \frac {y2-y1} {x2-x1} = \frac {6-2} {2-1} = \frac {4} {1} = 4[/tex]
Thus, the equation is of the form:
[tex]y = 4x + b[/tex]
We substitute a point to find "b":
[tex]2 = 4 (1) + b\\2 = 4 + b\\b = 2-4 = -2[/tex]
Finally, the equation is:
[tex]y = 4x-2[/tex]
Answer:
[tex]y = 4x-2[/tex]