Equation of a line in slope-intercept form

where m is the slope and b is the y-intercept.
The slope of the line that passes through the points (x₁, y₁) and (x₂, y₂) is calculated as follows:

This line passes through (2,5) and (6,1), then its slope is:

Substituting with the point (2, 5) and m = -1 into the general equation and solving for b:

Substituting with m = -1 and b = 7 into the general equation, the equation of this line is:
