Carlos is arranging books on shelves. He has 24 novels and 16 autobiographies. Each shelf will have the Same amount of novels and autobiographies. If Carlos must place all of the books on shelves, what are the possible numbers of shelves Carlos will use?