Eric bought some hats and bags for $191 altogether. Each hat cost $12.80 and each bag cost $23.30. 2/5 of the hats and bags that Eric bought were hats. How many bags did Eric buy?
The bags must have been 3/5 of the total items
Let's call the number of total items = T
So
Number of hats bought * 12.80 + Number of bags bought * 23.30 = 191
(2/5)T* 12.80 + (3/5)T * 23.30 = 191
5.12T + 13.98T = 191
T ( 5.12 + 13.98) = 191
T (19.1) = 192
T = 191 / 19.1 = 10 items were bought
The number of bags = (3/5) * 10 = 6