Use the given info to find k in
Where C=cost and s=speed.
To find the cost per mile, divide by s. Don't forget the $100 additional cost.
Differentiate:
Set to 0 and solve for s and we get:
That is the optimal speed.
Now, can you finish the second part?