I will write the steps, so other readers can benefit from this as well.
Because ##PV^{\gamma}## is constant, from the ideal gas law (##PV=nRT##), we get that
##TV^{\gamma-1}## is constant.
Finally, we have
$$T_0V_0^{\gamma-1} = T_fV_f^{\gamma-1}$$
$$T_f = T_0 (\frac{V_0}{V_f})^{\gamma-1} = T_0...