I was given the following question by my tutor:
The variation of enthalpy ($\Delta H$) and entropy ($\Delta S$) in a reaction carried out at constant pressure in the temperature range between $\pu{300^\circ C}$ and $\pu{350^\circ C}$, are $\pu{1700 kcal}$ and $\pu{15 kcal/K}$, respectively. Calculate the range of temperatures in which this reaction is spontaneous.
But my book on thermodynamics says that the change in Gibbs' energy for a process can only be calculated if we start and end at the same temperature (the temperature can vary during the process as heat is added or lost from the system to the surroundings, but the end points must have constant temperature and pressure.) In this question the changes in entropy and enthalpy are found over a range of temperatures where the final temperature is not the same as the initial temperature, but the pressure is always constant.
Is my tutor's question invalid, is my book wrong in saying that the temperature has to be the same at the initial and final values, or am I thinking about this wrong?