In a class of 50 students, 10 did not opt for math, 15 did not opt for science and 2 did not opt for either. How many students of the class opted for both math and science?

Correct Answer: 27
Students opted for Math or Science, n(M U S)  = 50 - 2 = 48 Students opted for Math, n(M)  = 50 - 15 = 35 Students opted for Science, n(S)  = 50 - 10 = 40 Students opted for both Math and Science n(M ∩ S)  =  n(M) + n(S) - n(A U B)  = 35 + 40 - 48 = 27