in a class of 38 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 borrowed at least 3 books . if the average number of books per student was 2 , what is the maximum number of books any single student could have borrowed ?
"total # of students = 38 avg # of books per student = 2 total # of books = 38 * 2 = 76 # of student borrowed at least 3 books = 38 - 2 - 12 - 10 = 14 # of books borrowed by above 14 students = 76 - ( 12 * 1 ) + ( 10 * 2 ) = 44 considering that 13 out of above 14 students borrowed only 3 books , # of books borrowed = 13 * 3 = 39 so maximum # of books borrowed by any single student = 44 - 39 = 5 option b"
subtract(multiply(38, 2), add(multiply(subtract(subtract(38, add(add(multiply(12, 1), 10), 2)), 1), 3), add(multiply(12, 1), multiply(10, 2))))