Which equation shows the substitution method being used to solv the system of equations?
x+y=6
x=y+2

A. (y+2)+y=6
B. x+y=y+2
C. x=(x-6)+2
D. x+(y+2)=6