In a class of 30 students, 2 students did not borrow any books from the library, 12 students each borrowed 1 book, 10 students each borrowed 2 books, and the rest of the students each borrowed at least 3 books. If the average (arithmetic mean) number of books borrowed per student was 2, what is the maximum number of books that any single student could have borrowed?