How a real estate company makes money