For this case we have the following expression:

Where the variable g is given by:
g: number of gallons of gas.
Therefore we have:
1) The numerator of the fraction represents the total cost of gallons of gas.
2) The denominator of the fraction represents the number of people among whom the total cost of gallons of gas is distributed.
Answer:
the expression 3g in the numerator represent:
The total cost of the gas before it was split between the friends