Total weight of two varieties of rice = 15 + 25 = 40 kg
Total cost price of 40 kg of rice =(15×29)+(25×20)
=₹(435+500)
=₹935
Selling price of 1 kg of mixed rice = ₹27
The total SP of 40 kgs of mixed rice =40×27=₹1080
Profit = Selling price - cost price
= 1080−935
= ₹145