Solve the issue 2-12 of the combination solution.