Recording transactions in the equation

Every transaction changes at least two items of the equation by amounts that keep both sides equal, and revenue and expenses change equity through retained earnings.

From Financial Accounting.