Okay so first of all we need the y-intercept. The y-intercept is the point on the graph in which the line meets with the y-axis. This point is -2.
Then, we have to find the slope of the line. The formula for slope is m = y2-y1 / x2 - x1.
But let's make it more simple since you have a graph anyway. Slope is rise over run. In this graph, you go 2 up and 1 right every time in order to get to the next point. So, slope is 2.
Now that we have everything we can write the equation of the line.
y - y1 = m(x - x1)
Plug in any of the given coordinates for x1 and y1.
y - 2 = 2(x - 2)
y - 2 = 2x - 4
y = 2x - 2
Now you have the equation of your line in simplest form (slope-intercept form).