The canteen sells 4 types of chocolates - A,B,C,D. A costs Rs.10, B costs Rs.5, C costs Rs.8 and D costs Rs.11. I have Rs.100 with me to spend. If I buy, 4 chocolates of type D and 5 chocolates of type C, then how many chocolates of type A and B can I buy so that I use the maximum of the Rs.100 that I have.
4 chocolates of type D cost Rs. 44 and 5 chocolates of type C cost Rs.40. So, Rs.84 is spent already. Now Rs.16 is left and cost per Chocolate of type A and B are multiples of 5. So to maximise the expenditure, 3 of type B and 0 of type A or 1 of type B and 1 of type A can be bought.
Create a FREE account and get: