Students contributed some money to help needy people. They bought twenty four 2-kg packets of flour, thirty six 1-kg packets of flour and a fifty kilogram bag of sugar. The flour was packed in 500 g packets and the sugar in 250 g packets. How many people got both a packet of flour and a packet of sugar?

2 answers

24*2+36 = 84 kg flour
50 kg sugar

So, now you can figure how many packets of each were made, and thus how many got both.
84/.5 = 168
50/.25 = 200
= 368