Beginning inventory, purchases and sales data for T-shirts are as follows:
Apr 3 Inventory 24 units @ $10
11 Purchase 26 units @ $12
14 Sale 36 units
21 Purchase 18 units @ $15
25 Sale 20 units
Assuming the business maintains a periodic inventory system, calculate the cost of merchandise sold and ending inventory under the following assumptions:
a. First-in, first-out: