ANSWER
The function if the graph is,
[tex]y = 6x + 2[/tex]
EXPLANATION
We want to write the function for the graph that, goes through (1,8) and (0,2).
Let the function be of the form
[tex]y = mx + c[/tex]
Where m is the slope and
[tex]c = 2[/tex]
is the y-intercept.
The slope is
[tex]m = \frac{2 - 8}{0 - 1} = - \frac{ - 6}{ - 1} = 6[/tex]
The equation becomes,
[tex]y = 6x + 2[/tex]