Using the data below, determine the ending inventory amount assuming the weighted average method under a periodic inventory system.
Line Item Description - Value
Beginning inventory - 10 units
Purchases - 20 units
Total cost of units available for sale - $3,000
Ending inventory - 12 units