Let the required quantity of the first oil (at Rs.40 per liter) be xxx liters. We have:

  • First oil: xxx liters at Rs.40 per liter
  • Second oil: 240 liters at Rs.60 per liter
  • Mixture: (x+240)(x+240)(x+240) liters at Rs.52 per liter

Total cost of mixture = cost of first oil + cost of second oil:

40x+60⋅240=52(x+240)40x+60\cdot 240=52(x+240)40x+60⋅240=52(x+240)

40x+14400=52x+1248040x+14400=52x+1248040x+14400=52x+12480

Bring like terms together:

14400−12480=52x−40x14400-12480=52x-40x14400−12480=52x−40x

1920=12x1920=12x1920=12x

x=192012=160x=\frac{1920}{12}=160x=121920​=160

So, 160 liters of oil at Rs.40 per liter should be mixed with the 240 liters of oil at Rs.60 per liter.