A recipe calls for 3 cups of flour to make 1 batch of cookies. If Sarah wants to make enough cookies to serve 24 people, and each person is expected to eat 2 cookies, how many cups of flour will Sarah need? Assume each batch makes 12 cookies. Let's think step by step and output the final answer within \boxed{}.
user