Final answer:
To find the number of pepperoni pizzas ordered, set up an equation using the information given and solve for P.
Step-by-step explanation:
Let's define the number of pepperoni pizzas as P. According to the information given, there were eight fewer veggie pizzas than pepperoni pizzas, so the number of veggie pizzas would be P-8. Additionally, there were three times as many combo pizzas as pepperoni pizzas, so the number of combo pizzas would be 3P.
Together, the total number of pizzas ordered is given as 112. So we can set up an equation: P + (P-8) + 3P = 112. Simplifying this equation gives us 5P - 8 = 112. Solving for P will give us the number of pepperoni pizzas ordered.
5P - 8 = 112
5P = 120
P = 24
Therefore, 24 pepperoni pizzas were ordered.