show your steps.

Ben has 36 fiction books and 24 nonfiction books. He wants to put all of these books into equal stacks with no leftover. If each stack either has all fiction books, or all non-fiction books, what is the greatest number of books each stack can have”

Step 1: Find the greatest common divisor (GCD) of 36 and 24.

24 = 2 x 2 x 2 x 3
36 = 2 x 2 x 3 x 3
GCD = 2 x 2 x 3 = 12

Step 2: Divide both the number of fiction books and nonfiction books by the GCD:
36 ÷ 12 = 3
24 ÷ 12 = 2

Step 3: The greatest number of books each stack can have is the GCD:
Therefore, the greatest number of books each stack can have is 12.