The energy (heat) flows into and out of the volume can be calculated using the equation:
\[
\dot{U}_{heat} = P = \dot{m} c T.
\]
So our energy balance is:
\[\begin{align*}
P_{heat} = \dot{Q}_{heat} &= \dot{U}_{out} - \dot{U}_{in} \\
&= \dot{m} c T_{out} - \dot{m} c T_{in} \\
&= \dot{m} c (T_{out} - T_{in}).
\end{align*}\]
Solve for \(T_{out}\):
\(\begin{aligned}
T_{out} &= T_{in} + \frac{P_{heat}}{\dot{m} \cdot c_{water}}
\\[10pt]
&= 20\;\mathrm{^\circ C} + \frac{2\;\mathrm{kW}}{0.05\;\mathrm{kg}\,\mathrm{s}^{-1} \cdot 4194\;\mathrm{J}\,\mathrm{kg}^{-1}\,\mathrm{K}^{-1}}
\\[10pt]
&= 29.537\;\mathrm{^\circ C}
\end{aligned}\)