We have workouts, durations, and difficulties and we want to know how many unique combinations of these items we can form.
Workout | Duration | Difficulty |
---|---|---|
Strength | 10mins | Beginner |
Yoga | 15mins | Intermediate |
Stretching | 20mins | Advanced |
Biking | ||
Running | ||
Rowing |
There are three different ways these options can be combined.
- The user picks three things. The user picks one option for each of the three given categories: $6 \times 3 \times 3 = 54$
- The user picks two things. The user selects options for 2 of the three areas, either workout and duration ($6 \times 3 = 18$) or workout and difficulty ($6 \times 3 = 18$) or duration and difficulty ($3 \times 3 = 9$)
- Each combination generates a distinct result i.e. selecting 10mins and strength would give the user a different result than selecting 10mins, strength, and beginner.
- The user picks one thing. The user selects one option for the workout category ($6$) or one option for the duration ($3$) or one option for the difficulty ($3$)
This gives us:
$$ 54+(18+18+9)+(6+3+3) = 111 $$
I'm comfortable with this casing, but there's definitely a formalization of this problem that I'm missing.