The correct answer is: B. Ledger

A ledger is a book of accounts that contains all the financial transactions of a business. It is used to keep track of the debits and credits for each account, and to prepare financial statements such as the trial balance and the balance sheet.

A journal is a book of original entry that records all the financial transactions of a business in chronological order. It is used to track the source of each transaction, and to provide a detailed record of the transaction.

A cash book is a book of original entry that records all the cash transactions of a business. It is used to track the inflow and outflow of cash, and to prepare the cash flow statement.

A balance sheet is a financial statement that shows the assets, liabilities, and equity of a business at a specific point in time. It is prepared by taking the total debits and credits from the ledger, and then balancing them out.

Therefore, the ledger is the base for preparing the trial balance.