The class XI students of a school wanted to give a farewell party to the out going students of class XII. They decided to purchase two kinds of sweets, one costing Rs. 250 per kg and the other costing Rs. 350 per kg. They estimated that 40 kg of sweets were needed. if the total budget for the sweets was Rs. 11,800; find how much sweets of each kind were bought ?
Substituting y=18 in the equation (1), we get x+18=40=>x=22
Hence 22kg and 18kg of two types of sweets were bought.