Hello Rob!
Thanks for your comment and question. The $12 trillion amount I quoted in the above piece is just sovereign debt and does not include either corporate (including financial institutions) or consumer debts. I cannot answer the question about your speaker's $40 trillion figure, but I would guess he included corporate and consumer debt in his totals.
Hope that helps.
Jason