I believe it's the first option because the y intercept is 2 and the slope is positive one. So when you have -x + y - 2 = 0 you would take away y from that side of the equation and put it on the other side. That would give you -x -2 = -y. Then you would have to divide all of that by -1 because y can't be negative and you would get x + 2 = y which is the equation in a different form.
I hope this helps :) if you want me to explain it any further let me know