A salesman receives a fixed salary of $500 per week. In addition he is paid 12% of all sales over $1000. Write the formula that describes how his weekly salary, s, depends on his weekly revenue, r. (The revenue is the amount of money he collects by selling the goods.)