Solving subsets and numbers