Prepare the necessary journal entries on the books of Jayhawk Carpet Company to record the following transactions, assuming a perpetual inventory system (you may omit explanations):
(a) Jayhawk purchased $40,000 of merchandise on account, terms 2/10, n/30.
(b) Returned $4,000 of damaged merchandise for credit.
(c) Paid for the merchandise purchased within 10 days.