1] Sold the M-shares with a base cost of nil. Proceeds will be price at which NewCo shares list.
--- And ---
2] Acquired the NewCo Shares.
It is not spelled out, but presumably the base cost of the acquired NewCo shares will equal the price at which the NewCo shares list - i.e. equal to the proceeds applied to the deemed sale of the M-shares.