The city library donated some books to a class. If each student takes 4 books. there will be 20 books left. If 3 students do not take a book and the rest of the students take 5 books each, there will be no books left. How many books were donated to the class?