Gross margin from sales equals net sales minus cost of goods sold.
In this case 5000 - 3000 = 2000
Gross margin is how much money from sales will be added to overall profitability to pay other expenses, basically how much above the cost of selling the goods do we make at the sales price we are charging.