Historical Rules · 29 September 2017
Rule 202.3d
Official source text from the 29 September 2017 Rules release
When calculating the converted mana cost of an object with an {X} in its mana cost, X is treated as 0 while the object is not on the stack, and X is treated as the number chosen for it while the object is on the stack.