A company that sells cameras has determined that the revenue generated by selling x cameras weekly can be modeled

Question

A company that sells cameras has determined that the revenue generated by selling x cameras weekly can be modeled

by the function R(x)=400x-4x^2 and the total cost associated producing these cameras is given by C(x)=2000+170x. Find a function to represent the profit from producing and selling x cameras. Use this function to determine the number of cameras that should be sold in order to maximize profit, and the maximum possible profit.

Math