The prices at gas station A are :
3 gallons at $9.15
5 gallons at $15.25
So, per gallon costs =
or

At gas station B , the equation is p = $3.08g this means the price (p) is 3.08 per gallon and 3.08g (g is number of gallons) represents the total price of the number of gallons purchased.
Hence, Gas station A sells gasoline at a lower price of $3.05 per gallon.