I'll help with the first lake.
For the sake of understanding, let's call the respective volume of lakes $Q_1,\,Q_2$, the flows are $v$, the mass of poison in lakes $m_i$. Initial mass of poison $m$.
The concentration in the first lake is $\frac{m_1}{Q_1}$, hence the flow brings in $v\Delta t$ of fresh water and carries away $v\Delta t \frac{m_1}{Q_1}$ of toxic substance. Thus, $\Delta m_1 = v\Delta t \frac{m_1}{Q_1}$, or, in other words, $$\frac{d}{dt}m_1(t) = m_1(t)\frac{v}{Q_1},\quad m_1(0)=m.$$ We can solve this equation.
Can you take it from here and apply the same method to obtain the equation for the second lake?