Provident Trust Company, trustee, under deed of William C. Allen and Elizabeth C. B. Allen, filed a claim for 1933 and 1934 taxes on
Claimant was the holder of a first mortgage on this property. It foreclosed its mortgage and purchased the same at sheriff’s sale for a nominal bid, and received a sheriff’s deed dated May 20, 1935, which was duly recorded. At the time claimant took title from the sheriff, there still remained unpaid the aforesaid 1933 and 1934 taxes, which claimant accordingly paid on May 27, 1935.
Claimant now seeks to be subrogated to the right of the city to recover the taxes in question, in accordance with the agreement made on behalf of the association by Moss & Moss, whose authority to act for it is not challenged.
At the time the taxes for the years 1933 and 1934 accrued on this property, the association was neither the
“ ‘The object of subrogation is to place a charge where it ought to rest, by compelling the payment of a debt by him who ought in equity to pay it. “In short the doctrine of subrogation is that one who has been compelled to pay a debt which ought to have been paid by another is entitled to exercise all the remedies which the creditor possessed against that other, and to indemnity from the fund out of which should have been made the payment which he made”: Sheldon on Subrogation, sec. 11. There can be no right of subrogation in one whose duty it is to pay, or in one claiming under him, against one who is secondarily liable. ... In such a case payment is ex-tinguishment. Nor will subrogation ever be enforced where the equities are equal, or the rights not clear, nor to the prejudice of the legal or equitable rights of others’: Royal Arcanum v. Cornelius, 198 Pa. 46, 50, 47 A. 1124. See also, Com. v. American Surety Co., 112 Pa. Superior Ct. 270, 170 A. 305, affirmed 315 Pa. 428, 172 A. 844; Sundheim v. Phila. School Dist., 311 Pa. 90,166 A. 365.” (Italics supplied.)
Claimant in this case paid the taxes in relief of the owner of the premises and not in relief of the association. The agreement made by Moss & Moss, on behalf of the association, was not made for the benefit of claimant but for the benefit exclusively of the City of Philadelphia. Indeed, claimant had not then paid these taxes, nor was it then at all certain that claimant would at any time be compelled to pay the same. We conclude, therefore, that
