A store has been selling 300 Blu-ray disc players a week at $500 each. A market survey indicates that for each $30 rebate offered to buyers, the number of units sold will increase by 60 a week. Find the demand function and the revenue function. How large a rebate should the store offer to maximize its revenue?