We know that, for a number to be divisible by 11, the difference between the sum of digits in odd places and the sum of digits in even places should be either 0 or a number divisible by 11.
(1+4+X+2) – (2+5+4) = 0 or multiple of 11
X – 4 = 0
Therefore, X = 4.