How to calculate the merger of two listed companies?

After the merger of the two listed companies, only one stock will be retained in the end, and it will be replaced by a new stock according to the valuation, and the name of the stock will also be changed.

For example, if the share price of stock A is 10 yuan, and stock B is 9 yuan, and the two stocks are merged, then the ratio of the two stocks is 1:0.9, and finally stock A is kept. If the investor holds 65,438+0,000 shares, then the investor can convert them into 900 shares in proportion.