Sections 22 and 23 apply in a case where trustees have, under section 11, 16, 17 or 18—
Subject to subsection (3), sections 22 and 23 also apply in a case where trustees have, under any power conferred on them by the trust instrument or by any enactment or any provision of subordinate legislation—
If the application of section 22 or 23 is inconsistent with the terms of the trust instrument or the enactment or provision of subordinate legislation, the section in question does not apply.