Write an equation for the linear function f with the following values: f (0) = 2 and f (2) = 8

so your two points are (0,2) and (2,8) where (0,2) is the y-intercept

slope = (8-2)/(2-0) = 3

without further ado

y = 3x + 2