Except the problem is we haven't been letting the free market sort it out. The market is highly distorted by laws which prevent development, which is why prices are so high.
Zoning rules like height restrictions, floor area ratio, lot coverage, setbacks, parking minimums, square footage minimums, lot size minimums, and other zoning restrictions place extreme limits what can be built before we even mention exclusive single family zoning.