totalCost(nGallons) = 3*nGallons, or y(x) = 3x, where y is the total cost in dollars and x is the volume in gallons.