Sarah is organizing a charity event and needs to prepare goodie bags. Each goodie bag requires 3 chocolates, 2 candies, and 1 toy. She has 24 chocolates, 18 candies, and 10 toys. If she maintains the same ratio of items in each goodie bag, what is the greatest number of goodie bags she can prepare? Let's think step by step and output the final answer within \boxed{}.
user