Assuming that net cost of purchases was $39,000 during the year and that ending merchandise inventory was $1,000 less than the beginning merchandise inventory of $12,500, how much was cost of goods sold?