how do i od this linear equation in slope form

y = -x + 4
The correct option is B
Explanation:Given the point (1, 3) and (3, 1)
The equation of a line is given as:
y = mx + b
Where m is the slope and b is the y-intercept.
To obtain the slope, we use the formula:
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1} \\ \\ =\frac{1-3}{3-1}=\frac{-2}{2}=-1 \end{gathered}[/tex]The equation now becomes:
y = -x + b
We can use the point (1, 3) to obtain the y-intercept. Using x = 1, and y = 3
3 = -1 + b
b = 3 + 1 = 4
Finally, we can write the equation as:
y = -x + 4