The golden rule for real accounts is: debit what comes in and credit what goes out. In this transaction, cash goes out and the loan is settled. Hence, in the journal entry, the Loan account will be debited and the Bank account will be credited.