Which of the following accounting methods accomplishes much of the matching of revenues and expenses?

A) Cash basis accounting
B) Accrual basis accounting
C) Double-entry accounting
D) Single-entry accounting