What is the function rule for the line

Answer:
The function rule is f(x) = 4x - 2.
Step-by-step explanation:
Using the points (2,6) and (0,-2) we see that the slope is
(6 - -2) / (2-0) = 8/2
= 4
Using the slope-intercept form y = m x + c (where m = slope and c= y-intercept we see that :-
f(x) = 4x - 2