In a class of 25 students, 12 have taken mathematics, 8 have taken mathematics and computer science. The number of students who have taken computer science but NOT mathematics is:

In a class of 25 students, 12 have taken mathematics, 8 have taken mathematics and computer science. The number of students who have taken computer science but NOT mathematics is: Correct Answer 13

Concept:

Let A and B denote two sets of elements.

n(A) and n(B) are the numbers of elements present in set A and B respectively.

n(A - B) is the number of elements present in A but NOT in B.

n(B - A) is the number of elements present in B but NOT in A.

n(A ⋃ B) is the total number of elements present in either set A or B.

n(A ⋂ B) is the number of elements present in both the sets A and B.

 
  • n(A ⋃ B) = n(A) + n(B) - n(A ⋂ B)
  • n(A - B) = n(A) - n(A ⋂ B)
  • n(B - A) = n(B) - n(A ⋂ B)

 

Solution: 

Let A and B be the sets of students who have taken Mathematics and Computer Science respectively.

Given: n(A ⋃ B) = 25, n(A) = 12 and n(A ⋂ B) = 8.

Calculation:

n(A ⋃ B) = n(A) + n(B) - n(A ⋂ B)

⇒ 25 = 12 + n(B) - 8

⇒ 25 = 4 + n(B)

⇒ n(B) = 25 - 4 = 21

And the number of students who have taken computer science but NOT mathematics is:

n(B - A) = n(B) - n(A ⋂ B) = 21 - 8 = 13.

Related Questions

Each question below is followed by two statements I and II. You have to determine whether the data given in the statements are sufficient for answering the question. You should use the data and your knowledge of Mathematics to choose the best possible answer. What is the average weight of new students added? I. In a class 60% students are male and there average weight is 15 kg more than the female students, 9 males and 6 new female students joined the class and the average weight of the class increased by 0.84 II. Total male students in the class is 12 more than female students adding 9 male students to the class increases the average weight of male students by 1 kg and adding 6 female students increases the average weight of female students by 0.6.