A baker is preparing for a large event and needs to bake cookies. Each batch of cookies requires 2 cups of flour. The baker has 50 cups of flour and plans to use 30% of it for making cakes. How many batches of cookies can the baker make with the remaining flour? Let's think step by step and output the final answer within \boxed{}.
user