(Sunpetal Ruins isn't a spell.)
Sunpetal Ruins enters the battlefield tapped unless you control an enchantment.
,
: Tap target artifact with converted mana cost X or less.
: Add
or
to your mana pool.
Sacrifice Sunpetal Ruins: Add
or
to your mana pool.