Translating the information from a word problem into a function.

55 Views Asked by At

I would like to verify that this word problem was translated into a function correctly.

A towing company charges a flat rate of $100.97$ dollars per day plus $0.81$ dollars per mile.

I think the function can be represented as follows if $y$ is cost and $x$ is miles: $$ y=100.97+(0.81)x $$

The average rate of change in dollars per mile is $0.81$. Is this right?