Gas costs $3.10 a gallon. Which of the following represents the function that expresses the independent variable as a function of the dependent variable?

a. f(x)=3.10x
b. f(x)=3.10​/x
c. f(x)=x−3.10
d. f(x)=3.10−x