use the following data to calculate the cost of merchandise sold:
sales : $50,000
beginning inventory: $6000
purchases: $20000
purchase discounts: $1000
ending inventory: $4000