y = -x + 4
Step-by-step explanation:
uisng equation of ;line: y = mx + b
m = slope, b = y-intercept
points: 3, 1 and 5, -1
Slope formula:
![m\text{ = }(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/sukh4lu5s7fgiz5v423o6usjd9gul4kfrj.png)
![\begin{gathered} x_1=3,y_1=1,x_2=5,y_2\text{ = -1} \\ m\text{ = }(-1-1)/(5-3) \\ m\text{ = -2/2 = -1} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/rtqvkzeloedi4hs8cr9s02wai22c3ay7ip.png)
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