Emma is planning a party and needs to buy party favors. She decides to buy small gift bags for each of her 8 friends. Each gift bag contains 3 items. How many items does Emma need to buy in total? Let's think step by step and output the final answer within \boxed{}.
user