Given:
A table of x and y values
To determine the equation based on the given table, we get first the change y over change in x as shown below:
We can notice that the change in x is 1, while the change in y is 4.
Next, we use the slope formula:
Slope = Change in y/Change in x
So,

Then, we use the slope intercept formula:

where:
m=slope
b=y-intercept
We also note that the y-intercept is where the corresponding x-coordinate always zero. As we can see on the given table, x equals zero when y=-2, so the y-intercept is -2.
We plug in m=4 and b=-2 into y=mx+b:

Therefore, the equation is y=4x-2.