Answer:
0 and 4
1 and 3
2 and 2
3 and 1
4 and 0
Explanation:
If you need 4 gifts and you want to spend less than $40, then you could buy
1 cd+ 3 dvds for $25
2 cds + 2 dvds for $24
3 cds + 1 dvd for $20
4 cds and 0 dvds for $16
0 cds and 4dvds for $32
Any of these solutions will work