The equation of the linear function in the slope intercept form is expressed as
y = mx + c
where
m is the slope
c is the y intercept
The formula for calculating slope is expressed as
m = (y2 - y1)/(x2 - x1)
From the table,
when x1 = - 2, y1 = 0
when x2 = - 1, y2 = 3
m = (3 - 0)/(- 1 - - 2) = 3/(- 1 + 2) = 3/1
m = 3
Slope = 3
The y intercept is the value of y when x = 0. Thus,
y intercept = 6
By substituting m = 3 and c = 6 into the slope intercept equation, the equation for the function is
y = 3x + 6