Hi
If the £18,000 acquistion cost was for all of the shares you bought, then you would need to apply the relevant proportion to the shares you are selling.
In this example if you paid £8000 for shares that you are selling for £16,000 your gain would be £8000. After the annual Capital Gains tax-free allowance of £3000 (assuming you have not sold or disposed of any other assets within the financial year), CGT would be due on £5000.
As you are not disposing of, or selling the shares that you are placing into an ISA no CGT is due. If you choose to sell or dispose of them in the furture you may need to pay CGT then - depending their value at the time.
More information can be found here:
Capital Gains Tax: what you pay it on, rates and allowances