In a class, 20 opted for Physics, 17 for Maths, 5 for both and 10 for other subjects. The class contains how many students?
n(P)=20
n(M)=17
n(M∩P)=5
n(othersubjects)=10
n(M∪P)=n(M)+n(P)−n(M∩P)
n(M∪P)=17+20−5=32
Total students =n(P∪M)+n(othersubjects)
32+10=42