Emma is organizing a bake sale. She plans to bake 24 cupcakes and 36 cookies. She wants to pack them into boxes such that each box contains the same number of items and no items are left over. What is the greatest number of boxes she can use, and how many cupcakes and cookies will be in each box? Let's think step by step and output the final answer within \boxed{}.
user