With no advertising your newspaper has a circulation of 6000 papers. For each dollar you spend on advertising, your newspaper circulation increases by 5 papers. You earn a profit (taking into account advertising expense) of 9 cents for each paper sold, but you must pay $500 to have the papers delivered. Find a formula that gives the total profit P, in dollars, that you earn if you spend a dollars on advertising.