x = 1 - y
y = 2x - 2
The second equation is already solved for y, so replace y of the first equation with 2x - 2.
x = 1 - y
x = 1 - (2x - 2)
x = 1 - 2x + 2
3x = 3
x = 1
Now substitute 1 for x in the second original equation to find y.
y = 2x - 2
y = 2(1) - 2
y = 0
Solution: x = 1 and y = 0