Y = -x + 10

y = x + 2

Add the two equations.

2y = 12

y = 6

Insert that value into the first equation and solve for x. Check by inserting both values into the second equation.