This problem corresponds to finding the number of combinations with repetition (multiset combinations or the stars and bars problem).
We need to select r=3 scoops from n=4 distinct flavors where repetition is allowed and order does not matter.
The formula for combinations with repetition is:
(rn+r−1) Substituting n=4 and r=3:
(34+3−1)=(36)=3×2×16×5×4=20 Thus, there are 20 ways to make the purchase, which corresponds to option (B).