d = days rented for
m = miles driven for
so the cost of the car is 35 bucks a day and 45 cents or $0.45 per mile driven, let's check it out for say a few days
1st day, 3 miles......................35(1) + 0.45(3)
2nd day, 2 miles..................35(2) + 0.45(2)
3rd day, say 5 miles............35(3) + 0.45(5)
dth day, and m miles..........35d + 0.45m
so the cost function could be written as C = 35d+0.45m.
now, we know for 2 days, d = 2, it cost 166.75 bucks, so
They both are acute angles
Let the speed of first car be x mph
the speed of the second one is (x+3) mph
Relative speed=x+x+3=(2x+3) mph
but
time=distance/speed
thus
3=(261)/(2x+3)
solving for x we get:
3(2x+3)=261
6x+9=261
6x=261-9
6x=252
hence:
x=42 mph
Thus the average speed of first car is 42 mph
Average speed of the second car is (42+3)=45 mph