The shares of the sold company are converted into the new company stock. The value is decided by the purchase price.