34 total members....
5 take both math and physics
so, (18 - 5) = 13....take only math...
x ....take only physics
8 take neither
34 - 8 = 26 take math,physics, and both
13 + 5 + x = 26
18 + x = 26
x = 26 - 18
x = 8
check...
both = 5
neither = 8
math = 13
physics = 8
added = 34
so only 8 take physics but not math