292. Subrogation.

A lender who advances money which is used to discharge a security will be subrogated to the rights under that security and will obtain priority over incumbrances subsequent to that security if: