The officer making demand on the trustee upon the execution shall first deduct from the amount received by him the sum paid by the plaintiff to redeem, if any, with interest and shall apply the balance on the execution. If the demand has been redeemed otherwise than by the payment of money, the plaintiff shall be subrogated for the holder thereof and have the same rights and remedies against the principal defendant, and may enforce them, at his own expense, in the name of such holder or otherwise.
14 M.R.S. § 2752