Well, it worked out for them because in the solution they used a negative value of the heat dissipation rate, i.e. Q=-15W.
Intuitively, you know the surface temperature will be higher than ambient so you would write Tsurface - Tambient. and with 15W (instead of -15W) you get the same answer.