6 bags of dog food × $9 = 54
$89 total - $54 spent on dog food = $35 spent on cat food
$35 / $8 = 4.375, but you can't have decimals for cat food bags so round down.
= 4 bags of cat food
There is a possibility of 24 combinations I believe
With one cup of sugar, you need five cups of water. For one cup, you divide one by five, which would be 1/5 cups of sugar.