In this rule

Historical Rules · 20 November 2020

Rule 107.3g

Official source text from the 20 November 2020 Rules release

Permalink

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.

Find this number in the current Rules