There is a UK capital gains tax annual exempt amount, currently £11300 https://www.gov.uk/government/publications/rates-and-allowances-capital-gains-tax/capital-gains-tax-rates-and-annual-tax-free-allowances
There is also a UK tax-free personal allowance, currently £11500 https://www.gov.uk/income-tax-rates
Are these two tax allowances independent?
If someone receives £11300 in capital gains and £11500 in income from working do they have to pay any tax?
If someone receives £11300 in capital gains and £30000 in salary do they only pay tax on the £30,000 income?