Alice spend a total of $10.50, and the 30% of total was spent on snacks.
So, if we call x the money spent on snacks we have that the ratio between x and total spent money is 30%:
3.5m questions
4.5m answers