A local authority may contribute towards costs incurred by a person in connection with a legal charge which secures, or a proposed legal charge which is intended to secure, a relevant advance made or proposed to be made to him by any person or body
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .