Current location - Training Enrollment Network - Mathematics courses - The supermarket bought 40 bags of food, a bag of candy, a bag of 5 yuan and a bag of potato chips, all of which went to 95 yuan. How many bags of sweets and chips are there?
The supermarket bought 40 bags of food, a bag of candy, a bag of 5 yuan and a bag of potato chips, all of which went to 95 yuan. How many bags of sweets and chips are there?
Set candy X bag and potato chips (40-x) bag.

5x+2(40-x)=95

5x+80-2x=95

3x= 15

x=5

40-5=35 (bag)

Answer; Five bags of candy and 35 bags of potato chips.