Addi has 36 jazz CDs and 48 country CDs. She wants to store as many CDs as possible on each self of a cabinet, while putting the same number of CDs on each self but not mixing jazz and country CDs on the same shelf. How many CDs can go on each shelf and how many shelves does she need?