ok, what you wrote down was good, but to be a bit more specific:
Average Speed= 40 mph
Time spent traveling= t
Distance traveled= d(t)
So, what are you being asked to do?
Actually you are being asked to write this out in a linear function. But, how are you supposed to do this with the information given?
Ok, well, we are trying to set the distance traveled (d(t)) equal in some way to a relation between time spent traveling and average speed. So, how do you find this? How would, given average speed and time spent traveling, you find out the distance traveled?
Well If I know how fast I am going and how long I am going for, let's say I am going 2 mph and am going to walk for 1 hour. I would find the distance traveled by multiplying my speed (2) by the length of time I spent walking (1). So, in short to find total distance traveled by using average speed and length of time traveleing said speed, you multiply the two together...
Can you figure it out from there?