Artificial intelligent assistant

Optimization - Maximizing Profit I have been struggling with the problem below for quite some time now and no one can seem to figure it out, so I am asking it here. The question is as follows: You own an apartment complex with 50 units, and if you charge 1000 dollars per month in rent, it is fully occupied For every 50 dollars that you increase the rent, one tenant moves out. It costs you 200 dollars per month to maintain an occupied apartment. (Empty apartments cost you nothing.) How much rent should you charge to maximize profit? Any help is greatly appreciated!

Let $n$ = the number of times you increase the rent by 50 dollars. Let $r$ = the rent you are charging. Let $t$ = the number of tenants in the apartment. Let $p$ = total profit.

$$n=\frac{r-1000}{50}$$

$$t=-n+50$$

$$p=tr-200t$$

Optimize in terms of $r$ and you're done.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 95ab02f450936ab328105bf179179932