Using the substitution method for a linear - quadratic system of equations