The equation of a line in its slope intercept form is given by:
where m is the slope and b is the y-intercept.
We know that the y-intercept is the value of y when x=0, hence from the table we have that b=-2.
To find the slope we use the formula:
Plugging the first two points on the table we have:
Once we know the slope and y-intercept we plug them in the equation above, therefore the equation we are looking for is: