Step-by-step explanation:
y=x-2....eqn1
x+y=12.....eqn2
now,
from eqn 1
y= x-2
again, putting value of y in eqn 2
in eqn 1
hope it helps..