If the owed countervalue is 40,000 and secured collateral value is 25,000, what follows after loss?

Kitab al-Rahn: Salam, Sarf, Third-party Custody and Fungible Collateral