The companies who are involved in the merger are valued separately by discounting anticipated cash flows for each company using the average weighted cost of capital for the firm.