O'Daniel Company had beginning inventory on May 1 of $12,000. During the month, the company made purchases of $40,000 but returned $2,000 of goods because they were defective. At the end of the month, the inventory on hand was valued at $15,500. Calculate cost of goods available for sale and cost of goods sold for the month.