The sentence in Spanish is "Compro la gasolina en la estación de servicio."
To substitute "la gasolina" with a direct object pronoun, we use "la," since "gasolina" is a feminine singular noun.
Thus, the sentence becomes: "La compro en la estación de servicio."
I used the pronoun "la" because it refers to the feminine singular noun "gasolina." In Spanish, direct object pronouns agree in gender and number with the nouns they replace. Since "gasolina" is feminine and singular, "la" is the appropriate pronoun to use.