The answer to this question is 30/100*$50,000 = $15,000 remains on the balance sheet at the end of the year.
The $ 1200 paid for advertisement is not included in the cost of inventory.
Cost of inventory=cost of inventory+ any other cost needed to get inventory in place of sale.