The demand d for a companys product cost x is predicted by the function d(x) = 500-2x. The price p in dollars that the company can charge for the product is given by p(x)=x+5