I'm assuming there are two equations and two unknowns here
-x +2y =-2
x +y = 2 after adding x to both sides of the second equation
Add these two equations together. That gives you
3y = 0 so y = 0
Then solve for x in either equation:
0 = -x +2 or x = 2