Emily is baking cookies for a bake sale. She plans to use a recipe that requires 2 cups of flour for every 3 dozen cookies. If she wants to make a total of 9 dozen cookies, how many cups of flour will she need?