A system of equations is 2 or more equations for which the same x,y solution exists. We can solve the system in three ways: elimination, substitution, or graphing. Substitution can be used by substituting the value of one variable into the equation.
Because y=x-2, we can substitute x-2 into y in x+y=12.