Answer
$y = 3x-2$
Work Step by Step
Find the slope of the table. This is the change in y over the change in x.
As y goes up by 3, x goes up by 1. Therefore the slope is 3. Next, find the y-intercept (the y coordinate when x is 0). They already gave it to you in the table. The y-intercept is $-2$. The equation of a line is $y = mx + b$ where m is the slope and b is the y-intercept. Plug in the values and the equation you get is
$y = 3x-2$