Solve each problem.
Maximum Revenue The revenue of a charter bus company depends on the number of unsold seats. If the revenue in dollars, $R(x)$, is given by
$$
R(x)=-x^{2}+50 x+5000
$$
where $x$ is the number of unsold seats, find the number of unsold seats that produce maximum revenue. What is the maximum revenue?