A store owner estimates that by charging x dollars each for a certain brand of sunglasses, he can sell 40−x pairs of sunglasses each week. The quadratic function R(x)=−x^2+40x is used to find the revenue, R, received when the selling price of a pair of sunglasses is x. Find the selling price that will give him the maximum revenue, and then find the amount of the maximum revenue.