The problem boils down to a differential equation if
Vb = volume of brine
t = time
Note: the volume in the tank is a function of time as 20 + 4t (Since you start with 20L, input 8L/min & remove 4L/min.
dVb/dt = -4Vb/(20 + 4t) or dVb/Vb = - dt/(5 + t)
where Vb is integrated from 20 liters to 4 liters (20%)
and time is integrated from 0 to the unknown time to reach 20%
The answer is indeed 20 minutes! (I make note of this since there are 2 different answers stated)