determine equation of line passing through the points 3 1 5 -1

y = -x + 4
Explanation:uisng equation of ;line: y = mx + b
m = slope, b = y-intercept
points: 3, 1 and 5, -1
Slope formula:
[tex]m\text{ = }\frac{y_2-y_1}{x_2-x_1}[/tex][tex]\begin{gathered} x_1=3,y_1=1,x_2=5,y_2\text{ = -1} \\ m\text{ = }\frac{-1-1}{5-3} \\ m\text{ = -2/2 = -1} \end{gathered}[/tex]To get the y-intercept, we would pick any of the points:
using: (3, 1) = (x, y)
y = mx + b
1 = -1(3) + b
1 = -3 + b
1 + 3 = b
b = 4
The equation becomes:
y = -1(x) + 4
y = -x + 4