Samantha is organizing a charity bake sale and plans to bake cookies. She has 12 batches of cookie dough, with each batch making 24 cookies. If she plans to pack the cookies into boxes, with each box containing 18 cookies, how many boxes will she need to pack all the cookies? Let's think step by step and output the final answer within \boxed{}.
user