Use a combination when order does not matter:
Return the number of ways to choose r items from n.
r
n
Input
n = 12 r = 3
Output
220
solve(...)