Divide the total number of cakes by the number of bags.

• Total cakes = 9
• Number of bags = 3
• Cakes per bag = 9 ÷ 3 = 3

Final Answer: 3