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 student...

Answer: 
27
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?