You don't have to spend the two mana on the same spell.

Artwork
Loading artwork…
Troyan, Gutsy Explorer
Secrets of Strixhaven Commander · #334 · EN
Nonfoil—Foil—
Card rules
1/3
"The streets of Ravnica were stifling. Eldraine is an endless adventure paved in gold."
Uncommon · Illustrated by Jesper Ejsing
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You can spend mana generated by Troyan on any part of the cost of a spell that contains X in its mana cost. You're not limited to spending it only on the X part.