We have dollars and dollars per pack, so we divide to get how many packs.

Odd that it's not a whole number of packs; please check the question carefully. Let's say she bought 12 and got some change.
My guess is the question really says Alice spent $22.75, so she bought 13 packs. Again check the question carefully. You don't need us to divide two numbers.