A company purchased $5,000 worth of merchandise inventory. The company also paid transportation costs of $400. The company then later return damaged inventory for $380 and paid the invoice within a 2% discount period. What is the total amount paid for this merchandise inventory?