First, we need to use slope formula* to find the slope.
[tex]m = \frac{-2 - 6}{3 - (-1)} = \frac{-8}{4} = -2[/tex]
Second, we use the slope we found and ONE of the 2 points listed and plug it into slope-intercept form** to solve for b.
Here is what we have so far:
I'm going to use this point:
Here is how to find b:
[tex]-2 = -2(3) + b\\\\-2 = -6 + b\\\\4 = b[/tex]
Finally, we put all of it together and we have our equation.
[tex]y = -2x + b[/tex]
*Slope formula: m = y₂ - y₁/x₂ - x₁
**Slope-intercept form: y = mx + b