Answer: Your answer is correct. Here are the steps below
He buys 1 litre of pure honey for $100. Sweet oil costs $20 per litre. Let us assume that he mixes "x" litre of sweet oil with honey. The total volume is 1+x.
Cost price $= 100*1 + 20*x$
Revenue $= (1+x)*100$
Percentage gain $= 0.4$
Gain $= (1+x)*100 - (100+20x) = 80x$
Percentage gain $= \frac{80x}{100+20x} = 0.4$
Solve for x and you will get 5/9.
So for 1 liter of honey he mixes 5/9 litre of sweet oil to realize 40% profit percentage