Thanks I think I get it now. It made sense to give Q (heat energy) a negative sign since energy was dissipated. So the negative value indicates a loss in heat energy. Then working from there I got intial temp to be 428.81K
So it should've been (17+273.15) * (–99,000/1.4*510) = 428.81K