Use the slope-intercept form: y = mx + b
Identify m as the slope
Identify b as the y-intercept
If given a point and slope, substitute the point’s x and y values into y = mx + b
Solve for b
Write the equation as y = mx + b
If given two points, first find the slope using m = (y2 – y1) / (x2 – x1)
Substitute the slope and one point into y = mx + b
Solve for b
Write the final equation as y = mx + b
