Find the slope, first:
[tex]m = \frac{ y_{1} - y_{2} }{ x_{1} - x_{2} } [/tex]
Use any two points, for example (1,0) and (3, -2)
[tex]m = \frac{-2 - 0}{3 - 1} = -1[/tex]
So, the slope is -1.
Then, use the formula for any given point, y and x are constants
[tex]y - y_{1} = m(x - x_{1} )[/tex]
Use, for example, point (1, 0)
[tex]y - 0 = (-1)(x - 1)[/tex]
[tex]y = -x +1[/tex]
So, the equation is [tex]y = -x +1[/tex]