The numbers 11, 12, 14, x-2, x+4,x+ 9, 32, 38, 47 are arranged in ascending order and the median is 24: find x.