N(P)-took physics,N(C)-took chemistry,N(M)-took maths
all those who took physics also took chemistry, so
N(P&C)=N(P)-N(P&M)=15-6=9
a)exactly one subject
N=N(P)-(N(P&M)+N(P&C))+N(C)-(N(C&M)+N(P&C))+N(M)-(N(P&M)+N(M&C))+=0+23-(6+9)+20-(9+9)=10
b)exactly two subjects
N=N(P&M)+N(C&M)+N(P&C)=6+9+9=24
c) N=N(P)+N(C)+N(M)-N(P&C)-N(P&M)-N(M&C)+1=20+23+15-6-9-9+1=35
Comments
Leave a comment