Solve the system of equations using substitution.