Calculus Examples

Solve for P (dP)/(dx)=24-6x
I am unable to solve this problem.