OK, then, multiplying through gives you your
Revenue (as a function of
x apartment units rented)...
... and your
Profit function, which is
Revenue less
Costs ...
If you can, graph both of these functions to get an intuitive 'visual' of their behavior as the number of rented units varies.
The answers to your first two questions come from taking the first derivative of each of these functions, and finding those values of
x which make the derivatives equal to zero. (Since the functions are cubics, the derivatives will be quadratics, so it amounts to finding the roots of the derivatives, for which you can use factoring, or the Quadratic Formula, or whatever you prefer).
You'll find that they each have two solutions, one negative and one positive. You can immediately disregard the negative solution, since you can't rent a negative number of apartments (even in this economy).
The positive solution for each one corresponds to the number of apt units for which Revenue, and Profit, are maximized, respectively. If you did those graphs, you'll see that those solutions also correspond to the "peaks" of the graphs, which occur in positive-
x territory.
As to the third question, I'm not real clear on what's being asked. Can you clarify a bit? (Maybe you were given a "demand" function, showing the number of units rented as a function of the rental rate per unit?)