Selling 45 lemons for ₹40 results in a 20% loss. This means the selling price (SP1) is 80% of the cost price (CP). SP1 = ₹40 for 45 lemons. 0.80 CP = ₹40 CP = ₹40 / 0.80 = ₹40 / (4/5) = ₹40 (5/4) = ₹50. So, the cost price of 45 lemons is ₹50. To gain 20%, the new selling price (SP2) should be 120% of 20%, he must sell 45 lemons for ₹60. Now, we need to find how many lemons he should sell for ₹24 to achieve this same profit margin. The price per lemon to gain 20% is ₹60 / 45 lemons = ₹(4/3) per lemon. Let $N$ be the number of lemons he sells for ₹24. The price per lemon in this new transaction is ₹24 / $N$. To maintain the 20% gain, the price per lemon must be the same: ₹24 / $N$ = ₹(4/3) $N = 24 \times \frac{3}{4} = 6 \times 3 = 18$. He should sell 18 lemons for ₹24.