At $25~^\circ\mathrm{C}$, $298~\mathrm{K}$, the reduction of copper(I) oxide, $ \Delta H = 58.1~\mathrm{kJ}$, $\Delta S = 165~\mathrm{J/K}$, is nonspontaneous, $ \Delta G = 8.9~\mathrm{kJ}$.
Calculate the temperature at which the reaction becomes spontaneous.
So for this question I'm thinking I use the equation
$$ \Delta G = \Delta H - T\Delta S$$
Then plug in the values and solve for $T$? $$8.9~\mathrm{kJ} = 58.1~\mathrm{kJ} -T(0.165~\mathrm{kJ}) $$