The slope-intercept form of a line is:
y=mx+b
We know the line passes through (−1,2). It could have a slope, it could be vertical (x=−1), or it could be horizontal (y=2).
Plug x=−1 into all four equations to see which equation is not satisfied. The only answer choice that doesn’t give us y=2 is y=x+1.