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.