You can feel free to solve the profit maximization problem of the apartment owner if you want.
https://en.wikipedia.org/wiki/Profit_maximization
A conversation with an LLM where you paste this exchange into the context is likely to clear up the reasons for your misconception.