On proceeds from sale of a spinoff stock. 12 shares reverse split to 6, split to 18 and finally split to 36 which were sold. How do I calculate the cost basis?