As the pipeline AB is working at its full capacity it must be transferring 2500 litres of oil. Out of which 1200 litres is taken by B, 700 litres is taken by C, and 400 litres oil taken by E. Remaining 200 litres will go to D but D's requirement is 700 litres so AD must be carrying 500 litres.
Again from the figure, the slack in the pipeline connecting C and D is 2300 litres.