Deductions & credits

So if you received $20,000 in payments from Ebay, but you paid $15,000 for the things which you sold for $20,000, are you still going to pay taxes on the $20,000 or is there a way to account for what you had to pay for those items? How do you record what you paid on schedule C?