Question 470657
6 students attended neither so, total  34 students attended class.

no. of students attended both = 20+23 - 34 

= 43 - 34 

= 9