Cost Basis of Stock Spinoff

Trying to determine cost basis. Listed as joint tenant on stock I learned about after aunt's death in 2012. Stock went on to spin off 3 companies. Sold the 3 spinoff stocks in 2019 (keeping orig). Is original stock considered a gift or an inheritance? Does it matter? I know value of stock when this arrangement was created in 2000 (says she turned in shares). Have all pertinent info on sale of spin offs. No idea how to calc basis. Appreciate the assistance. Thank you.