We are given a graph of a line and asked to write the equation in the form below.

Where m is the slope and b is the y-intercept of the line.
The y-intercept is the point where the line intersects the y-axis.
From the graph, we see that the line intersects the y-axis at -2
So, the y-intercept is -2

The slope of the line is given by

The rise is the vertical distance between the two points on the line.
The run is the horizontal distance between the two points on the line.
As you can see, we selected two points on the line and we have got a rise of 8 units and a run of 4 units

So, the slope of the line is 2
Therefore, the equation of the line is
