Barnes and noble needs to ship 14 mystery books, 12 science-fiction books, and 8 historical-fiction books. The store can only pack one genre of book in each box, and they must pack the same number of books in each box. What is the greatest number of books Barnes and Noble can pack in each box?