Let's denote the number of pizzas ordered as \( p \) and the number of mozzarella sticks as \( m \).
First, let's figure out how many slices of pizza there are:
Each pizza has 8 slices. Therefore, the total number of pizza slices from \( p \) pizzas is: \[ 8p \]
The total pieces of food (pizza slices + mozzarella sticks) is given as 64: \[ 8p + m = 64 \]
Now, since there are 8 people and each ate 5 slices of pizza, the total number of pizza slices consumed is: \[ 8 \times 5 = 40 \]
Since 40 slices were eaten, we can write: \[ 8p = 40 \] From this, we can solve for \( p \): \[ p = \frac{40}{8} = 5 \]
Now that we know there were 5 pizzas, we can find the number of mozzarella sticks \( m \) using the first equation: \[ 8p + m = 64 \] Substituting \( p = 5 \): \[ 8(5) + m = 64 \] \[ 40 + m = 64 \]
Now, solve for \( m \): \[ m = 64 - 40 = 24 \]
Now, we need to find out how many mozzarella sticks each person had. There were 8 people in total, so each person had: \[ \frac{m}{8} = \frac{24}{8} = 3 \]
Thus, each person ate 3 mozzarella sticks.