You can spend mana generated with Rosheen's last ability on any part of a cost that contains X. You're not limited to spending it only on the X part.

Artwork
Loading artwork…
Rosheen, Roaring Prophet
Modern Horizons 3 · #434 · EN
Nonfoil—Foil—
Card rules
When Rosheen enters, mill six cards. You may put a card with X in its mana cost from among them into your hand.
: Reveal any number of cards with X in their mana cost in your hand. Add 
for each card revealed this way. Spend this mana only on costs that contain X.
4/4
Rare · Illustrated by Fang Xinyu
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
A "cost that contains X" may be a spell's total cost, an activated ability's cost, a suspend cost, or a cost you're asked to pay as part of the resolution of a spell or ability (such as Condescend). A spell's total cost includes either its mana cost (printed in the upper right corner) or its alternative cost (such as flashback), as well as any additional costs (such as kicker). If it's something you can spend mana on, it's a cost. If that cost includes the X symbol in it, you can spend mana generated by Rosheen on that cost.
You don't have to spend all of the mana generated with Rosheen's last ability on the same cost.
You can use the mana generated with Rosheen's last ability in any cost you pay that includes X, including the mana costs of spells, activation costs, and even costs for special actions (such as morph). Any time you pay mana, that's a cost.