What is the maximum number of outcomes of a pair of dice thrown three times? For example:

1st Set: 2, 10, 4

2nd Set: 2, 2, 2

3rd Set: 10, 4, 2

Is there a universal formula I can use to calculate this problem with different variables? (For example, pair of dice thrown five times, three dice thrown six times, etc.)

Any help would be appreciated!