5U.K.In England and Wales or Northern Ireland, the recovery of expenses incurred by the Commissioner in providing an applicant with assistance (as taxed or assessed in such manner as may be prescribed by rules of court) shall constitute a first charge for the benefit of the Commissioner—
(a)on any costs which, by virtue of any judgment or order of the court, are payable to the applicant by any other person in respect of the matter in connection with which the assistance is provided, and
(b)on any sum payable to the applicant under a compromise or settlement arrived at in connection with that matter to avoid or bring to an end any proceedings.