If there are 48 kids that came and 3 were given to each person, 48 times 3 = 144. There are a total of 5 bags, but only 1 bag was left meaning she used 4 bags. So you would do 144/4=36 were in each bag. There was a total of 180 pieces of candy in the 5 bags.
The answer is 36 candies were in each bag.