P.s Bumping your thread is agaist forum rules!!

Rember that distance is equal to rate multiplied by time

so you your case you get

Using this you can compute the cost of fuel per hour driven as

Now just add this to his hourly wage as a function of time to get the cost function

I hope this gets you started.