Piper Pipes has the following inventory data:
July 1 Beginning inventory 50 units at $120
5 Purchases 300 units at $112
14 Sale 200 units
21 Purchases 150 units at $115
30 Sale1 40 units

Assuming that a periodic inventory system is used, what is the cost of goods sold on a LIFO basis.