Relentless Dead’s last two abilities trigger at the same time and can be put on the stack in either order. The ability put on the stack first will be the last to resolve.

Artwork
Loading artwork…
Relentless Dead
Secret Lair Drop · #850 · EN
Nonfoil—Foil—
Card rules
Menace (This creature can't be blocked except by two or more creatures.)
When this creature dies, you may pay
. If you do, return it to its owner's hand.
When this creature dies, you may pay X. If you do, return another target Zombie creature card with mana value X from your graveyard to the battlefield.
2/2
Mythic · Illustrated by Ryan Yee
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You decide whether to pay for each triggered ability as it resolves. If you do, the rest of that ability’s effect happens before any player may take actions.