This is a question I had to code in python but I dont understand exactly how it works. Is there some way to show the combinations?
Phillip the pizza banker wants to buy some pizza.
He wishes to purchase 23 pieces of pizza, and the available flavours are pineapple, pepperoni and cabanossi. The only restrictions on the combination of pizza pieces that can be purchased are that the number of pieces of pineapple pizza must be a multiple of 3, and the number of pieces of cabanossi pizza cannot exceed 12. In how many ways can Phillip the pizza banker purchase 23 pieces of pizza?