The slope-intercept form is

m is the slope
b is the y-intercept
The rule of the slope of a line that passes through points (x1, y1) and (x2, y2) is

From the given graph, the line passes through points (1, -4) and (0, 2)
Let (x1, y1) = (1, -4) and (x2, y2) = (0, 2)

Substitute the value of m in the form of the equation

Since the line intersects the y-axis at point (0, 2)
Then the y-intercept is 2
Then b = 2
The equation of the line is
