CFO = Net income - increase in accounts receivable + increase in accounts payable - increase in inventory + loss on sale of equipment - gain on sale of real estate.
Note that I’m assuming the loss and gain in the sale of assets in this exercise are already adjusted for taxes (after-tax amounts).