An entity that is a beneficiary or the trustee of a trust estate has a share of a * capital gain that is the sum of:
(a) the amount of the capital gain to which the entity is * specifically entitled; and
(b) if there is an amount of the capital gain to which no beneficiary of the trust estate is specifically entitled, and to which the trustee is not specifically entitled--that amount multiplied by the entity's * adjusted Division 6 percentage of the income of the trust estate for the relevant income year.