Remember, that these costs include 10 months worth of back payments
What is interesting is it sounds like the 2nd took possession through foreclosure and then failed to make the 1st solvent and will in turn have the first lien foreclosed losing their interest.
I suspect a judge will say tough cookies to the 2nd holder for any recourse since the 2nd failed to liquidate the property in a prompt fashion there by potentially rectifying any short fall. Essentially, the 2nd’s interest may get liquidated if they let the first foreclose.