To find the total cost of filling the gas tank when the price of gasoline is $4 per gallon, we simply substitute p = 4 into the equation:
T = 30p
T = 30(4)
T = $120
Therefore, the total cost of filling the gas tank when the price of gasoline is $4 per gallon is $120.