In a class of 40 students, 32 offer Mathematics, 24 offer Physics and 4 offer neither Mathematics nor Physics. How many offer both Mathematics and Physics?

A.

4

B.

8

C.

16

D.

20

Correct answer is D

Let the number of people that offer both Mathematics and Physics = y

Then, \((32 - y) + y + (24 - y) + 4 = 40\)

\(60 - y = 40 \implies y = 20\)

\(\therefore\) 20 students offer both Mathematics and Physics.