A manufacturer finds that the revenue generated by selling $x$ units of a certain commodity is given by the function $R(x)=80 x-0.4 x^2$, where the revenue $R(x)$ is measured in dollars. What is the maximum revenue, and how many units should be manufactured to obtain this maximum?