Cash flow from operations would be calculated as +Net Income $12,000 + Depreciation $1,000 + Loss on sale of machinery $500 − A/R $2,000 − A/P $1,500 + Income taxes payable $500 = $10,500.
Repayment of Bonds is a financing activity and would not be included with operating activities. Depreciation is not a cash flow activity and is therefore always added back to net income to calculate CFO. The loss on the sale of machinery is not a cash outflow so it is also added back to calculate CFO. Accounts receivable is subtracted when there is an increase as this increases net income but does not affect cash.