debit Cost of Merchandise Sold, $5,000; credit Merchandise Inventory, $5,000