Answer
$ T_2=\frac{wcT_1-Q}{wc}
.$
Work Step by Step
To solve the given equation for $T_2$, we do the following steps
$$
Q=wc(T_1-T_2)\Longrightarrow Q=wcT_1-wcT_2\\
\Longrightarrow wcT_2=wcT_1-Q\\
\Longrightarrow \frac{wcT_2}{wc}=\frac{wcT_1-Q}{wc}\\
\Longrightarrow T_2=\frac{wcT_1-Q}{wc}
.$$