Answer:
3.731 minutes
Explanation:
Let the amount of salt in the tank at any time be x(t)
Since x(0)=5 g is dissolved in 20 liters of water
Brine with 2 grams per liter salt enters the tank at the rate of 3 liters/min
Salt entering per minute is 2* 3=6 grams/min
Volume of liquid leaving the tank is the same as the volume of liquid of tank entering, 3 liters/min
volume of liquid remains at 20 liters at all times
At any given points of time, the concentration of salt is
grams/liter
Amount of liquid leaving per minute is 3 liters/min so that the amount of salt leaving is
grams/minute
Differential equation governing the salt amount in the tank is

Therefore,
Integrating factor is
and so the equation becomes
![\frac{d}{dt}\left[\exp\left(\frac{3t}{20} \right )x(t) \right ]=6\exp\left(\frac{3t}{20} \right )](https://tex.z-dn.net/?f=%5Cfrac%7Bd%7D%7Bdt%7D%5Cleft%5B%5Cexp%5Cleft%28%5Cfrac%7B3t%7D%7B20%7D%20%5Cright%20%29x%28t%29%20%5Cright%20%5D%3D6%5Cexp%5Cleft%28%5Cfrac%7B3t%7D%7B20%7D%20%5Cright%20%29)
Therefore, ![\left[\exp\left(\frac{3t}{20} \right )x(t) \right ]=\int 6\exp\left(\frac{3t}{20} \right )=40\exp\left(\frac{3t}{20} \right )+C](https://tex.z-dn.net/?f=%20%5Cleft%5B%5Cexp%5Cleft%28%5Cfrac%7B3t%7D%7B20%7D%20%5Cright%20%29x%28t%29%20%5Cright%20%5D%3D%5Cint%206%5Cexp%5Cleft%28%5Cfrac%7B3t%7D%7B20%7D%20%5Cright%20%29%3D40%5Cexp%5Cleft%28%5Cfrac%7B3t%7D%7B20%7D%20%5Cright%20%29%2BC)

Using the initial condition 
is the amount of salt at any point of time



After approximately 3.731 minutes, we have 20 grams of salt in the tank