Cost of Goods Available for Sale

The following information is available for Cooke Company for year 2: Net sales $1,800,000 Freight-in 45,000 Purchase discounts 25,000 Ending inventory 120,000 The gross margin is 40% of net sales. What is the cost of goods available for sale? We can deduce COGS and we are given ending inventory. Why does the book tell me not to count in the freight and purchase discounts? Doesn't that contribute to the cost of making my inventory?