In a class of 45 students, it is known that 24 of them do art, 20 do chemistry and 22 do biology, and 8 chemistry and biology. How many do two subjects only?