Alessandra's closet contains shelves that hold 12 short-sleeved shirts and 16 long-sleeved shirts. each shelf holds the same number of shirts and contains only short-sleeved shirts or long-sleeved shirts. What is the greatest number of shirts that could be on each shelf?
A: 3
B: 4
C: 5
D: 9