Loan restructure

A company acquired a loan in the amount of $50,000.  The outstanding balance was $42,157 inclusive of outstanding principal, accrued and unpaid interest, and other costs.  The bank agreed to a loan restructure for a final settlement of $9,365.  The settlement amount was 22% of the outstanding balance.