In this rule

Historical Rules · 17 July 2015

Rule 601.2g

Official source text from the 17 July 2015 Rules release

If the total cost includes a mana payment, the player then has a chance to activate mana abilities (see rule 605, “Mana Abilities”). Mana abilities must be activated before costs are paid.

Find this number in the current Rules