Emily planned to bake cookies for a school bake sale. She had a recipe that required 4 cups of flour for each batch of cookies. However, she mistakenly added an extra 2 cups of flour to one of the batches. If she made a total of 5 batches, how much flour did she use altogether? Let's think step by step and output the final answer within \boxed{}.
user