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
a. $3,000
b. $1,200
c. $100
d. $1,500