<span>3[-x+(2x+1)]=x-1
</span><span>3[x+1]=x-1
3x + 3 = x -1
3x - x = -1 -3
2x = -4
x = -4/2
x = -2</span>
First find the slope:
m = ( 2 - 1 ) / ( 0 - (-1) ) = 1 / 1 = 1
Set up slope-intercept form:
y = 1·x +2
Now move x and y to the left and leave 2 on the right:
-x + y = 2
This is also equivalent to x - y = -2, so that just depends if you want your x coefficient to be positive or negative.