Gross profit percentage = Gross profit/Sales x 100Cost of goods sold = 40,000 + 170,000 - 50,000= 160,000Gross profit = 200,000 - 160,000= 40,000Gross profit % = 40,000/200,000 x 100= 20%