Q = mc(Tf-Ti)
I prefer to solve for the variable and sub in the given values with the appropriate units to check that the units mesh, to check my algebra, to make sure I am subbing in the correct quantities...
Ti = Tf - Q/mc (The only concern when plugging in is to write Q as 305 J
Please consider a tutor. Take care.