What is the amount of the discount to be taken by a company that purchases inventory for $10,000 with terms 2/10, n/30, returns $2,000 of the inventory purchased, receives an allowance for defective merchandise of $100, and pays the amount due within the discount period?