Cost of merchandise sold = Beginning inventory + purchases - [purchase discount +ending inventory].
Cost of merchandise sold = 5000 + 21,800 - [790 + 5,100]
26, 800 - 5,890 = 20,910
Therefore, the amount of money that is used to produce the merchandise sold is $20, 910.