First find the slope or rate of change of the cost relative to the number of days.
m=(325-180)/(9-4)
m=145/5
m=29, so far we have:
y=29x+b, using either point we can now solve for b, I'll use (4,180)
180=29(4)+b
180=116+b
64=b so the cost function with respect to days rented is:
y(x)=29x+64
The domain of this function is limited to values greater than or equal to one as renting for zero days, you wouldn't pay the $64 dollar fee and you can't have negative rental days. Furthermore, the range values would be restricted to integer values. And you would have to put some kind of restriction upon how large the values became because you cannot rent a car infinitely...
So the domain would be integer values [0, 30] I just use 30, but you could come to your own conclusion about a logical upper limit to the number of days that the car would be rented. And that would be the domain label to, "days".
The range would also be restricted to integer value starting at 93 and then increasing by multiples of the $29 daily rental fee. Of course this axis is "dollars".