Try to summarize price information as a table.
cheese 6
pepperoni 9
supreme 12
List the cost of each pizza type bought.
Variables for how many of each type may be c for Cheese, p for Pepperoni, s for Supreme.
cheese 6c
pepperoni 9p
supreme 12s
"He spent.....",
becomes .
There are two other equations which come from the description.
The more complete system to solve is this:
.
Simplify the system and solve it for c, p, and s.