Answer:
The equation to find the number of gallons purchased is:

You purchased 12 gallons of gasoline
Explanation:
This problem can be modeled by the following first order function

Where C(n) is the cost in function to the number of gallons, P is the price of the gallon and n is the number of gallons
The problem states that the price of gasoline is $3.05 per gallon, so P = 3.05
The equation to find the number of gallons purchased is:

If you pay $36.60, you have C = 36.60, and want to find n, so:



You purchased 12 gallons of gasoline