Suppose the values of the cards at the bottom of the three piles are
,
and
.
The three piles contain
,
and
cards respectively,
so the magic counting pile contains
cards.
Suppose we turn over piles a and b. We count out
cards, leaving
exactly
in the magic counting pile.
Ta-da! Delightful.