There are choices for sizes and choices for toppings, of which any combination (including no toppings) can be selected.
The total number of possible choices of toppings is . Thus, the total number of possible size-topping combinations is .
We wish to sample two pizzas, with replacement, out of the possibilities. By Einstein-Bose, there are a total of choices.
A common mistake is to use multiplication rule to get as total possible combinations for two pizzas, and try to adjust for overcounting by dividing the result with 2 (as order between pizzas doesn’t matter). This fails because the possibilities with identical pizzas are counted only once.