"if beginning inventory is $100,000, cost of goods purchased is $500,000, sales revenue is $1,000,000 and ending inventory is $130,000, how much is cost of goods sold under a periodic system?"