Answer :

(0,1)(-1,0)
slope = (0 - 1) / (-1 - 0) = -1/-1 = 1

y = mx + b
slope(m) = 1
and b, the y intercept (where the line cross the y axis) is 1

so ur equation of the new line is : y = x + 1