Equation of a line in slope-intercept form
where m is the slope and the point (0, b) is the y-intercept.
The slope of the line that passes through the points (x₁, y₁) and (x₂, y₂) is calculated as follows:
Given that the x-intercept of this line is -2, then the line passes through (-2, 0), and given that the y-intercept is -4. then the line passes through (0, -4), then its slope is:
Substituting with m = -2 and b = -4 into the general equation, we get: