Rate of change of cost = dC/dt = 40dx/dt = 40(500) = 20000 $/wk
Rate of change of revenue = dR/dt = -dx/dt/240 = -500/240 = -2.983 $/wk (with -x2/40 --> -2x/40 dx/dt)
Rate of (P = R - C ) dP/dt = dR/dt-dC/dt from linearity property of derivatives.
The revenue function doesn't seem to have the right scale, and the form is odd as well. (Something like 200000 - x2/40, for example would be more reasonable)