Mary is baking a cake. The recipe calls for 24 cups of sugar and 40 cups of flour. She already put in 2 cups of flour. How many more cups of flour than cups of sugar does she need to add now?
18 cups of flour.