Answer
Accounts receivable (trade debtors) is money owed to the business by credit customers—an asset in the sales ledger. Accounts payable (trade creditors) is money the business owes to credit suppliers—a liability in the purchases ledger. They arise from buying and selling on credit.
Real-world example Unpaid customer invoices are receivables; unpaid supplier invoices are payables.