The answer of your question is 20 gallons of gasoline. It just a simple division you just have to divide $25 which is the given money to buy an exact amount of gallon by $1.25 which is the price of each gallon. So you would come up to an answer of 20 gallons.
The answer will be as shown in the pic 15x^(2) +35x
You need to use y=mx+c to answer this so basically
gradient/slope (m) is 1.5 and the y-intercept (c) is -2
Hope this helps :)