First, find the slope of the given points (m = y2 - y1 / x2 - x1)
m = (6-1) / (-4-1) = 5/-5 = -1
Then substitute the slope and the coordinates of either point for x and y into y = mx + b, we’ll use (-4,6)
6 = (-1)(-4) + b
Solve for b
6 = 4 + b, subtract 4 from both sides: b = 2
Rewrite y = mx + b with m = -1 and b = 2
Equation: y = -1x + 2 or y = -x + 2