Answer :

Let's solve this problem step-by-step.

1. Identify the initial amount of oil in the barrel:
- The barrel initially contained [tex]\( 400 \)[/tex] liters of oil.

2. Determine the fraction of oil that leaked away:
- Two-fifths ([tex]\(\frac{2}{5}\)[/tex]) of the oil leaked away.

3. Calculate the amount of oil that leaked:
- To find the amount of oil that leaked, multiply the initial amount of oil by the fraction that leaked.
[tex]\[ \text{Amount of oil leaked} = 400 \times \frac{2}{5} \][/tex]

4. Simplify the calculation:
- [tex]\( 400 \times \frac{2}{5} = 400 \times 0.4 = 160 \)[/tex] liters.

5. Calculate the amount of oil remaining in the barrel:
- Subtract the amount of oil that leaked from the initial amount of oil.
\[
\text{Amount of oil remaining} = 400 - 160 = 240 \) liters.

So, the amount of oil that leaked away is [tex]\( 160 \)[/tex] liters, and the amount of oil remaining in the barrel is [tex]\( 240 \)[/tex] liters.