y = -x + 2

y = x - 4

Add the two equations. The x's cancel

2y = -2 Therefore
y = -1
and -1 = x -4
x = 3