Let's define the following variables:
x = the amount of pure acid (100%) in liters
y = the amount of 20% acid in liters
If mixing the two liquids makes 52 L, then we can say that: (equation1)

In addition, 100% of x liters + 20% of y liters will make 52L of 40% solution then, we can also say that: (equation 2)

Using this two equations, we can solve for the values of x and y using elimination. Here the steps:
1. Subtract equation 2 from equation 1.

2. Divide both sides of the equation by 0.8.

Therefore, the value of y = 39. The amount of 20% acid solution added to the mixture is 39 liters.
3. Plug in the value of y in the equation 1 to solve for x.

The value of x is 13. Hence, the amount of pure acid that was added to the mixture is 13 liters.