I don't think that's right. The $5000 is contribution room. You can always take out the dividends, but $3000 per year leaves $2000 (x10 years = $20,000). That calandar year I don't think they can re-contribute the $40,000 without the other $20,000 being taxed. But the next year after the withdraw, I think they can do the $40,000.
__________________
|