Using the indirect method, CFO = Net income 25 + increase in accounts payable 20 + increase in deferred taxes 5 − profit on sale of equipment 15 = $35.
Increases in accounts payable and deferred taxes are sources of operating cash that are not included in net income and must be added. Profit on sale of equipment is a CFI item that must be removed from net income.
No adjustment needs to be made for cash payment of dividends (CFF), sale of preferred stock (CFF), or purchase of land (CFI) because they are not included in net income. Only the profit on sale of equipment, not the full proceeds from sale, is included in net income.