Let M,P,C denote the set of students who have taken Mathematics, Physics and Chemistry respectively.
n(M)=120,n(P)=90,n(C)=60
n(M∩P)=50,n(M∩C)=50,n(P∩C)=43,n(M∩P∩C)=38
∴ Number of students taking exactly one subject
=n(M)+n(P)+n(C)
−2n(M∩P)−2n(P∩C)−2n(M∩C)+3n(M∩P∩C)
=120+90+60−2(50)−2(43)−2(50)+3(38)
=98