Historical Rules · 25 August 2017
Rule 107.3f
Official source text from the 25 August 2017 Rules release
If a card in any zone other than the stack has an {X} in its mana cost, the value of {X} is treated as 0, even if the value of X is defined somewhere within its text.