Skip to content
Official PYQ · 1998

GATE CS 1998 Q2.4 — Sets, Relations and Functions

Explain with AI

In a room containing 2828 people, there are 1818 people who speak English, 1515 people who speak Hindi and 2222 people who speak Kannada. 99 persons speak both English and Hindi, 1111 persons speak both Hindi and Kannada whereas 1313 persons speak both Kannada and English. How many speak all three languages?

Choose one option
View worked solution

Answer: D

We can solve this problem using the Principle of Inclusion-Exclusion (PIE) for three sets.

Let:

  • EE be the set of people who speak English   ⟹  ∣E∣=18\implies |E| = 18
  • HH be the set of people who speak Hindi   ⟹  ∣H∣=15\implies |H| = 15
  • KK be the set of people who speak Kannada   ⟹  ∣K∣=22\implies |K| = 22

We are given the intersection sizes for pairs of languages:

  • People speaking both English and Hindi: ∣E∩H∣=9|E \cap H| = 9
  • People speaking both Hindi and Kannada: ∣H∩K∣=11|H \cap K| = 11
  • People speaking both Kannada and English: ∣K∩E∣=13|K \cap E| = 13

Assuming that everyone in the room speaks at least one of the three languages, the total number of people is the union of the three sets:

∣E∪H∪K∣=28|E \cup H \cup K| = 28

According to the Principle of Inclusion-Exclusion:

∣E∪H∪K∣=∣E∣+∣H∣+∣K∣−(∣E∩H∣+∣H∩K∣+∣K∩E∣)+∣E∩H∩K∣|E \cup H \cup K| = |E| + |H| + |K| - (|E \cap H| + |H \cap K| + |K \cap E|) + |E \cap H \cap K|

Substitute the given values into the formula:

28=18+15+22−(9+11+13)+∣E∩H∩K∣28 = 18 + 15 + 22 - (9 + 11 + 13) + |E \cap H \cap K|

28=55−33+∣E∩H∩K∣28 = 55 - 33 + |E \cap H \cap K|

28=22+∣E∩H∩K∣28 = 22 + |E \cap H \cap K|

∣E∩H∩K∣=28−22=6|E \cap H \cap K| = 28 - 22 = 6

Thus, the number of people who speak all three languages is 6.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions