Substitution Method to Solve a System of Equations