We should find the slope and the y-intercept and for this we have a special form, the slope-intercept form.
In the above equation, m represents the slope and b the y-intercept of the line. Let's rewrite our equation a little bit so that it more closely resembles this form. It will make it easier to identify the slope and intercept.
We see above that the slope is 0 and the y-intercept is 21.
Since we know two points on the line, we can use the slope formula to find its slope.
We are given the points (-2,2) and (-6,2). Note that, when substituting these values into the slope formula, it doesn't matter which point we choose to use as (x1,y1) or (x2,y2), both will give the same result.
Here, we will use the points in the given order and solve for m.
The slope of the line that passes through the given points is 0. This means that as x increases, y neither increases nor decreases. The graph will be a horizontal line and has the same y-value for all points. Thus, the y-intercept will be at y=2.