The filling rates of the two pipes are:
\[ 30 \text{ liters/second} + 20 \text{ liters/second} = 50 \text{ liters/second} \]
The draining rates of the two leaks are:
\[ 10 \text{ liters/second} + 5 \text{ liters/second} = 15 \text{ liters/second} \]
The effective filling rate is the difference between the total filling rate and the total draining rate:
\[ 50 \text{ liters/second} - 15 \text{ liters/second} = 35 \text{ liters/second} \]
The total capacity of the tank is 5,000 liters. Using the effective filling rate, the time required to fill the tank is:
\[ \text{Time} = \frac{5000}{35} \approx 116.96 \text{ seconds} \]
It will take approximately 116.96 seconds to fill the empty tank.