To find out how many batches of cookies, \( x \), Megan made, we can set up the following equation based on the information given:
- She started with 20 cups of flour.
- Each batch of cookies requires 3 cups of flour.
- After making the cookies, she used the remaining flour (8 cups) to make muffins.
The equation can be set up as:
\[ 20 - 3x = 8 \]
This equation represents the total cups of flour (20) minus the cups used for cookies (3 cups per batch times \( x \) batches) being equal to the amount of flour used for muffins (8 cups).
Now, we can solve for \( x \):
-
Subtract 8 from both sides: \[ 20 - 8 = 3x \] \[ 12 = 3x \]
-
Divide both sides by 3: \[ x = \frac{12}{3} \] \[ x = 4 \]
Therefore, Megan made 4 batches of cookies.