A group of students are given three problems to solve (Problem A, B and C.) 13 students solve problem A, 17 solve problem B and 7 solve problem C. 9 solve problems A and B. 6 solve problems B and C. 5 solve problems A and C. 4 solve all three problems. 2 solve none of the three problems. How many students are there altogether.