The answer is He bought 2 packs of each. Let me break it down 4 u:
So basically, if u add 3 +6 u would get $9, right?
But the question informs u that he spent $18 TOTAL!
Sooooo, if u divide 18 by 9 then u would get 2!
So, mathematically proven, the answer is 2 packs each!
I hope this helped u please comment if it did!