A mathematics professor has 9 different books on a bookshelf. Five of them are about geometry and the other four are about number theory.
(a) How many ways can she arrange the books so that the topics alternate?
(b) How many ways can she arrange the books so that all the geometry books are
together?