Debit is left; credit is right. Cash and Equipment are assets: debits increase them and credits decrease them. Accounts Payable is an amount owed to a supplier; Loan Payable is a loan obligation. These liabilities increase with credits and decrease with debits. Capital records an owner contribution with a credit. Equal debit and credit totals are required for each entry; an entry can involve more than two accounts.
Worked example
Separate example: an owner adds 60, equipment costs 20 cash, a loan brings in 15, then 5 of principal is repaid. Debit Cash for 60 and 15; credit Cash for 20 and 5. Cash ends at 50. Equipment 20 + Cash 50 = Loan Payable 10 + Capital 60. Receiving equipment before paying would credit Accounts Payable instead of Cash.
A different workshop
Start with zero balances. K1: the owner contributes 80 cash. K2: equipment costing 25 arrives; payment to its supplier is due later. K3: pay that supplier 15 cash. K4: borrow 20 cash from a lender. All amounts are fictional dollars. Equipment stays an asset. Ignore interest, tax, depreciation and fees. There are no other transactions, sales or expenses.