In the equation of Gibbs free energy change $(\Delta G) = (\Delta H)-T(\Delta S)$, is $T$ the system's or surrounding's temperature?
Edit: Oh sorry, I was not clear earlier, now I have a clear question. I know we have to calculate the Gibbs free energy of the system, but the criterion for spontaneity of $ΔS_\text{total}$ should be greater than zero. When we relate it to the Gibbs free energy to show that the Gibbs free energy change should be always negative, we keep both the system and surrounding temperature the same, and the pressure also constant. If so, how can the process occur? Wikipedia says that it is the chemical potential that undergoes changes there, but what about the Gibbs free energy change?
I think I was in too much of a hurry to ask a question when I was studying, but I am running out of time so I asked it here.
NEW EDIT TO QUESTION: I found that the above equation can only be applied to open systems, but the quoted statement was at the top of the Free energy of reactions section taken from Wikipedia Article
To derive the Gibbs free energy equation for an isolated system, let $S_\text{tot}$ be the total entropy of the isolated system, that is, a system that cannot exchange heat or mass with its surroundings. According to the second law of thermodynamics:
The word "isolated" system means that the formula $\Delta G=\Delta H-T\Delta S$ is derived for an isolated system. But, I think in exactly the opposite way, that it is true for open systems. Read the above question before this New EDIT to understand my question. Please Help me.