A store has been selling 200 compact disc players a week at $350 each. A market survey indicates that for each $10 rebate offered to buyers, the number of units sold will increase by 20 a week. Find the demand function and the revenue function. How large a rebate should the store offer to maximize its revenue?