Solve Problem Using Substitution