I've included equal to 22000 in the "over" category

add up all values in a column (column A) for under 22000
=SUMIF(A:A,"<22000",A:A)

add up all values in a column (column A) for EQUAL TO or over 22000
=SUMIF(A:A,">=22000",A:A)

add together the values in column B if the value in Column A is under 22000
=SUMIF(A:A,"<22000",B:B)

add together the values in column B if the value in Column A is EQUAL to or over 22000
=SUMIF(A:A,">=22000",B:B)