Range of a set is defined as the difference of highest value and lowest value in the set.
22 be the highest value then the lowest value = 22 - 9 = 13
13 is the fourth number
18 is the lowest number then the highest value = 18 +9 = 27
27 is the fourth number
therefore the fourth number can be 13 or 27