The total cost (in dollars) for a company to manufacture and sell x items per week is C(x)=50x+400. If the revenue brought in by selling all x items is R(x)=80x-0.05x2, find the weekly profit. How much profit will be made by producing and selling 40 items each week? Hint: P(x)=R(x)−C(x).