Yes, when you buy an apartment you can specify all of this in the contract. A person or company can hold one / or more shares. In addition, the proportions can also be of different sizes. To sell it, we need a PoA from all parties in the Contract.
I work more than 15 years in the Real Estate Industry in Egypt. I like to change things and my motto is : MAKE !