(5) If, before the proceeds of the security or guarantee are distributed, the person liable, or his or her insurer, has settled the claim, such person shall, up to the amount he or she has paid, acquire by subrogation the rights which the person so compensated would have enjoyed under this Part.