When we say
$$\Delta G^\circ = \Delta H^\circ - T\Delta S^\circ$$
we are referring to $\Delta G^\circ$, $\Delta H^\circ$ and $\Delta S^\circ$ of the system. As such, the variable $T$ in the equation refers to the temperature of the system. The condition for constant pressure $p$ is implicit; the equation above does not directly show why $p$ has to be constant. For more information, refer to this question and answer.
The sentences that you have given are not the best examples to explain this, because they do not relate to Gibbs free energy. I will give you a different example:
When hydrochloric acid is added to sodium carbonate at atmospheric pressure, the standard enthalpy change $\Delta H^\circ$ and the standard entropy change $\Delta S^\circ$ are measured to be $x~\mathrm{kJ~mol^{-1}}$ and $y~\mathrm{J~K^{-1}~mol^{-1}}$ respectively. Calculate the Gibbs free energy of the reaction and hence determine the equilibrium constant. (The temperature at which the reaction is carried out is $25~\mathrm{^\circ C}$.)
The wording of the question may seem to imply that it is talking about the temperature and pressure of the surroundings, and that is probably not a coincidence. For a simple chemical reaction like the one above, we would probably carry it out in a beaker. We weigh out a certain mass of $\ce{Na2CO3}$, and add a certain volume of $\ce{HCl}$, and pour the acid into the beaker and watch the bubbles.
Under such conditions, we can speak of the system being at mechanical and thermal equilibrium. Without going into too much detail about reversible and irreversible processes (I know there are loopholes in the explanation):
Mechanical equilibrium, in general, means that the net force acting on the system is zero. Correspondingly, this must mean that the pressure of the system and the pressure of the surroundings are equal at all points in time. If, at any point in time, this was not the case, e.g. if we had $p_\mathrm{syst} < p_\mathrm{surr}$, then the surroundings would "push" on the system and cause the system to contract until it reaches the point where $p_\mathrm{syst} = p_\mathrm{surr}$.
Thermal equilibrium means that there is no heat transfer into, or out of, the system. Analogously to above, this must mean that the temperature of the system and the temperature of the surroundings are equal at all points in time. We conventionally assume the surroundings to be a "reservoir" which maintains a constant temperature, and this is pretty true as far as our simple example is concerned. Therefore $T_\mathrm{syst} = T_\mathrm{surr}$.