After the party, the student council stayed in the gym to clean up and return the decorations to the storage closet. What is the function of the phrase in the gym in the sentence? It is an adverb phrase modifying stayed. It is an adjective phrase modifying council. It is an adjective phrase modifying party. It is an adverb phrase modifying clean.