Answer with Step-by-step explanation:
We know that 6×6=36 and 18×2=36
i.e. 6 pack cookies cannot exceed 6 and 18 pack cookies cannot exceed 2 in order to buy 36 cookies.
Now making combinations:
Buying 6 6 cookie pack and 0 18 cookie pack and 0 single cookies
Buying 5 6 cookie pack and 0 18 cookie pack and 6 single cookies
Buying 4 6 cookie pack and 0 18 cookie pack and 12 single cookies
Buying 3 6 cookie pack and 1 18 cookie pack and 0 single cookies
Buying 3 6 cookie pack and 0 18 cookie pack and 18 single cookies
Buying 2 6 cookie pack and 0 18 cookie pack and 24 single cookies
Buying 2 6 cookie pack and 1 18 cookie pack and 6 single cookies
Buying 1 6 cookie pack and 0 18 cookie pack and 30 single cookies
Buying 1 6 cookie pack and 1 18 cookie pack and 12 single cookies
Buying 0 6 cookie pack and 0 18 cookie pack and 36 single cookies
Buying 0 6 cookie pack and 1 18 cookie pack and 18 single cookies
Buying 0 6 cookie pack and 2 18 cookie pack and 0 single cookies
Hence, the total number of ways we can buy 36 cookies is:
12