Numsprite數靈精Play free
中文

Maths olympiad question · P4–P5★★ Medium

Inclusion–exclusion: olympiad question 3

A medium question on inclusion–exclusion for P4–P5, with a step-by-step solution, diagrams and the answer. Common in the Hua Xia Cup's P3 to P6 qualifying rounds and finals; harder ones have three overlapping groups, or ask who is in exactly two.

The question

A class has 16 pupils.

7 like chocolate ice cream, 6 like strawberry, and 6 like neither.

How many like both?

Show the hints (2)
  1. Hint 1: First: how many like at least one?
  2. Hint 2: 7 + 6 is more than that. The extra are the pupils counted twice.

Worked solution

Have a go first, then read the solution step by step.

  1. 1.The 7 who like chocolate are in the left circle, the 6 who like strawberry in the right, and those who like both in the overlap; the 6 who like neither are outside.
  2. 2.Inside the circles (at least one): 16 − 6 = 10.
  3. 3.7 + 6 = 13, which is 13 − 10 = 3 more than the 10 inside.
  4. 4.The extra are those in the overlap, counted twice: 3 like both.
  5. ⚠️Common mistake: taking the class of 16 straight from 7 + 6, forgetting to remove the 6 who like neither.

Answer: 3 pupils

Play more like this in Numsprite (unlimited questions, instant marking) →A free maths game: every level free from Easy to Expert (★ to ★★★★), unlimited questions, no download