Solve the following system using the substitution method.