The two equations in y-intercept form are:
y=-x+2 and y=-x+10
You have to graph them to find the solution, which is the point they intercept each other.
Both lines have the same slope so they will never intercept which means they have no solution.
So, the answer is no solution.
I hope that helps!