Solving and Identifying Combinations and Permutations