We want to find the value of $X$ in the given situation.
To find the smallest number that is divisible by 6, we need to find the smallest number that is divisible by both 2 and 3.
For a number to be divisible by 2, the last digit must be even. Since the last digit is 4 in the given number (12354), we know that it is divisible by 2.
For a number to be divisible by 3, the sum of its digits must be divisible by 3. We can calculate the sum of the digits in the given number:
1 + 2 + 3 + X + 4 = 10 + X
To find the smallest number that is divisible by 3, we need to find the smallest value of $X$ such that (10 + $X$) is divisible by 3.
Looking at the possible values of $X$ (1, 2, 3, 4, and 5), we can determine that the smallest value of $X$ that makes (10 + $X$) divisible by 3 is 2.
Therefore, the value of $X$ is 2.
The answer is: 2
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Luna writes down all the five-digit numbers that contain each of the digits 1, X, 3, 4 and 5 exactly once.  What is the smallest number in Luna's list that is divisible by 6?
If we know the answer to the above question is 12354, what is the value of unknown variable X?

### Answer:
