Oriole Company sells office equipment on July 31, 2017, for $21,900 cash. The office equipment originally cost $76,780 and as of January 1, 2017, had accumulated depreciation of $36,270. Depreciation for the first 7 months of 2017 is $4,070. Prepare the journal entries to (a) update depreciation to July 31, 2017, and (b) record the sale of the equipment.