The book value loss (or gain) on a sale of direct loans equals the book value of the loans sold (prior to sale) minus the net proceeds of the sale.
The book value is the loans sold minus the proceeds of the sale.