How CGT is calculated for sale of shares is explained in this ATO publication - Part B
https://www.ato.gov.au/uploadedFiles/Content/MEI/downloads/ind39805n41520614.pdf
From there, you would need to see what your overall net gain/loss is based on the performance of your IP and shares