The mode of a data set is the value that appears the most in the set.
In order to have a mode of 23, the value of X must be 23, this way this value will appear two times in the set, and all the other values appear just one time.
So the answer is X = 23.