In a class of some students, students were asked if they like French fries, burgers, or neither. 15 students said they like French fries and 10 said they like burgers, with these statistics including the responses of 6 students who said they like both French fries and burgers. 6 students do not like either food. How many students are there in the class?
Assistant
Problem: In a class of some students, students were asked if they like French fries, burgers, or neither. 15 students said they like French fries and 10 said they like burgers, with these statistics including the responses of 6 students who said they like both French fries and burgers. 6 students do not like
Approach: the inclusion
Let me implement this solution.
Solution
Understanding the Problem
I need to find the total number of students in a class given information about their food preferences:
Students who like French fries: 15
Students who like burgers: 10
Students who like both French fries and burgers: 6
Students who like neither food: 6
The key insight is that the 15 students who like French fries includes the 6 who like both, and similarly, the 10 who like burgers includes those same 6 students.
Step-by-Step Solution
Step 1: Find students who like ONLY French fries
Only French fries=15−6=9 students
Step 2: Find students who like ONLY burgers
Only burgers=10−6=4 students
Step 3: Find students who like AT LEAST ONE food
Using the inclusion-exclusion principle:
∣F∪B∣=∣F∣+∣B∣−∣F∩B∣∣F∪B∣=15+10−6=19 students
Step 4: Find the TOTAL number of students
Total=Students who like at least one food+Students who like neitherTotal=19+6=25 students