Sunland Company sells office equipment on July 31, 2017, for $23,830 cash. The office equipment originally cost $79,860 and as of January 1, 2017, had accumulated depreciation of $39,690. Depreciation for the first 7 months of 2017 is $4,090. Prepare the journal entries to (a) update depreciation to July 31, 2017, and (b) record the sale of the equipment.