System of Equations Using the Substitution Method with Nonlinear Equations