To solve the problem, we can use the principle of inclusion-exclusion for the sets involved.
-
Identify the sets:
- Let \( |H| \) be the number of flavors with chocolate chips = 11.
- Let \( |N| \) be the number of flavors with nuts = 7.
- Let \( |H \cap N| \) be the number of flavors with both chocolate chips and nuts = 4.
-
Use the inclusion-exclusion principle to find the number of flavors that have either chocolate chips or nuts or both: \[ |H \cup N| = |H| + |N| - |H \cap N| \] Plugging in the values: \[ |H \cup N| = 11 + 7 - 4 = 14 \]
-
Find the number of flavors that contain neither nuts nor chocolate chips: The total number of flavors in the universal set \( U \) is 29. Therefore, the flavors that contain neither are: \[ |U| - |H \cup N| = 29 - 14 = 15 \]
Thus, the answer is that 15 flavors of ice cream contain neither nuts nor chocolate chips.
The correct answer is: D. 15