x = y + 12. You then substitute or plug in that from the first equation into the second equation. You get (y+12)+y=18, then you simplify to get your y value. In this case y = 3. The you can plug your y value into either equation. (x+3=18) or (x-3=12) or (x=3+12) either way you get x=15 and y=3.