Answer :
y = -x +2
First solve for slope and then substitute back in point to solve for B
First solve for slope and then substitute back in point to solve for B