Profit = R - C = x(2900 - 6x) - (18000 + 500x - 1.2x2 + .004x3
Note: Maximizing P by taking dP/dx = 0 is the same as saying dR/dx = dC/dx
Here dP/dx = 2900 - 12x - 500 + 2.4x - .012x2 = -.012x2 - 9.6x + 2400
You can now use quadratic formula to solve for x.
Please consider a tutor. Take care.