24x is a multiple of 3.
Therefore according to the divisibility rule of 3, the sum of all the digits should be a multiple of 3.
∴ 2 + 4 + x = 6 + x
6 + x is one of these numbers: 0, 3, 6, 9, 12, 15, 18, ... .
But since x is a digit, it can only be that 6 + x = 6 or 9 or 12 or 15.
⇒6+x=6⇒x=0
⇒6+x=9⇒x=3
⇒6+x=12⇒x=6
⇒6+x=15⇒x=9
Thus, x = 0, 3, 6, 9