Cash Flow Question (W/O Explanation)

The answer is B. 40,000, but why. I did -20+10-50-40+30= -70. Can someone please provide an explanation, especially with equipment gain on sale and depreciation. Not sure how to account for those two. 2. Martin Co. had net income of $70,000 during the year. Depreciation expense was $10,000. The following information is available: Accounts receivable increase $20,000 Equipment gain on sale increase 10,000 Nontrade notes payable increase 50,000 Prepaid insurance increase 40,000 Accounts payable increase 30,000 What amount should Martin report as net cash provided by operating activities in its statement of cash flows for the year? $0 $ 40,000 $ 50,000 $100,000