Madeline needs to buy 2*20=<<2*20=40>>40 seeds to make sure that she will have 20 flowers.
Thus, Madeline will need to buy 2 packs of flowers to have at least 40 seeds.
Thus, Madeline will spend 2*5=$<<2*5=10>>10 on seeds.
#### 10