A company can't hold shares in itself, so the newly merged company can either cancel the shares or sell them.They will decide which path to take by considering their plans and their balance sheet.