The two companies plan to go public and join the stock market.