The easiest way to start this problem is to note the number of liters in the barrel right now.
That's x
You add 6 liters to that amount
You get x + 6
From that y liters are lost.
Now your total is
x + 6 - y.
If you switch the order (which you should) you get
x - y + 6
Answer: A