What are the maximum and minimum number of pages in each type of book?