Sara has a small garden where she grows flowers. She has planted some flowers in three different sections of her garden. In the first section, she planted $\frac{2}{5}$ of her flowers, in the second section, she planted $\frac{1}{4}$ of her flowers, and in the third section, she planted the rest. If she planted a total of 40 flowers in her garden, how many flowers did she plant in the third section?