To solve this system of equations, we can use substitution:
y=x-2 (1)
2x+y=4 (2)
As the variable y is already isolated on the equation 1, we are going to substitute (1) on (2):
2x+(x-2)=4
2x+x-2=4
3x=4+2
3x=6
x=6/3
x=2
Since x=2, now we can substitute x=2 on equation (2)
2(2)+y=4
4+y=4
y=4-4
y=0