To evaluate the cost of gas for 8 gallons using the function c(g) = 2g + 15, you can plug 8 in for g in the function and solve for c:
c(8) = 2(8) + 15
= 16 + 15
= 31
Therefore, the cost of gas for 8 gallons is $31. Rounded to the nearest dollar, this is $31.