The correct answer is (B):
Let the cost price of peanuts for the wholesaler be x per kg.
Cost price of walnuts for the wholesaler is 3x per kg.
The wholesaler sold 8 kg of peanuts at 10% profit and 16 kg of walnuts at 20% profit to a shopkeeper.
Total cost price to the shopkeeper = (8)(x)(1.1) + 16(3x)(1.2) = 66.4x
The shopkeeper lost 5 kg walnuts and 3 kg peanuts.
The shopkeeper sold the mixture of 11 kg walnuts and 5 kg peanuts.
His total selling price=166(16) = 2656
His total cost price = 2656(100/125) = 2124.8
66.4x = 2124.8
x = 32
Price at which the wholesaler bought walnuts = 3x = 96/- per kg