how to solve a system using the substitution method