Cash flow relating to financing activities includes dividends paid, cash received from preferred stock, and repayment of loan. -2,000 + 10,000 + -5,000 = 3,000.
Cash flow relating to investing activities includes cash paid for equipment and cash from sale of land. -22,000 + 12,000 = -10,000.