A small boat moving at $x$ km/h uses fuel at a rate that is approximated by the function$$q=8+\dfrac{x^2}{50}$$ where $q$ is measured in litres/h.
Determine the speed of the boat for which the amount of fuel used for any given journey is least.
In attempting to answer this question, I assumed that you had to find when $q$ was a minimum. I found the derivative of the function, and made it equal to $0$, however this gets $x=0$. The answer is $x=20$. I am sure I'm missing something obvious, like multiplying by the number of hours, but I tried this and still cant seem to get the right answer.
Let minimize the fuel used per km that is that is
then