If A(t) is the amount of salt in the tank at time t, then A(0) = 50 g and
A'(t) = (1 g/L)*(3 L/min) - (A(t)/120 g/L)*(3 L/min)
![\implies A'+\frac A{40}=3](https://img.qammunity.org/2020/formulas/mathematics/high-school/4jufnkyjrlsfss6m3krilr53wvkl7sac5t.png)
Multiply both sides by
, so that the left side can be condensed as the derivative of a product:
![e^(t/40)A'+(e^(t/40))/(40)A=3e^(t/40)](https://img.qammunity.org/2020/formulas/mathematics/high-school/ja6auh41c8mavjtiklhaoaipg2uv8z0wlt.png)
![\left(e^(t/40)A\right)'=3e^(t/40)](https://img.qammunity.org/2020/formulas/mathematics/high-school/wltahuhl939d0xzhc1a55i75cyw2dnwfoy.png)
Integrate both sides and solve for A(t).
![e^(t/40)A=120e^(t/40)+C](https://img.qammunity.org/2020/formulas/mathematics/high-school/4402nemt419hbdfk91507is0hkweum61dt.png)
![\implies A(t)=120+Ce^(-t/40)](https://img.qammunity.org/2020/formulas/mathematics/high-school/mm0f0hkzh5tspk3bvcjslfn9f08gyvhsir.png)
Given that A(0) = 50 g, we have
![50=120+C\implies C=-70](https://img.qammunity.org/2020/formulas/mathematics/high-school/ojxzll2kev14ir0bgmg5yhs2ckp4kncvep.png)
so that the amount of salt in the tank at time t is
![\boxed{A(t)=120-70e^(-t/40)}](https://img.qammunity.org/2020/formulas/mathematics/high-school/s6szy8d83omfvw4sjwoov966so3calszit.png)