Example: Sold clothing on account to Briarfield School for Girls for $3,500

Example: Sold clothing on account to Briarfield School for Girls for $3,500. The clothing cost $2,000. />Why does “sold clothing on account” mean we debit account receivable? What does “on account” mean and how do we know if it is account receivable or account payable?