anonymousmouse56
I don’t quite agree with the solution. Q says "none [...] purchased more than one pizza of a particular type"
A says "a customer could only buy one pizza of each type, [...] 1 M and 1 P."
This seems to be a discrepancy?
There's no discrepancy. The question states that
no customer bought more than one pizza of a particular type, meaning a customer
could buy at most one Margarita and one Pepperoni but not, for example, two Margaritas or two Pepperonis.
The solution correctly follows this rule: when minimizing the number of customers, each customer buys
one Margarita and one Pepperoni if possible, maximizing the number of pizzas per customer within the given constraint. When maximizing the number of customers, each customer buys
only one pizza (either Margarita or Pepperoni), which results in the highest possible number of customers.
The misunderstanding comes from misinterpreting "one pizza of a particular type" as limiting each customer to only
one pizza total, which is incorrect. They are allowed
one of each type, not more than one of the same type.