On the exam
Check the three conditions before computing anything. In a sale, the loss is carrying amount minus net proceeds: the holdback is an asset, the recourse obligation reduces proceeds, and the related allowance leaves with the receivables. In a borrowing, nothing is derecognized and no gain or loss is recorded.