More than 30 and less than 50. So that means X is between 31 and 49.
X/2 is not an integer. So that eliminates all even numbers.
X has more than five factors. 31, 37, 41, 43, and 47 are all prime (meaning they only have two factors), 33, 35, 39, and 49 are all semiprimes (so they have three factors). Which leaves 45. 45's factors are 1, 3, 5, 9, 15, and 45. So it is 45.