Retirement tax questions

I'll have to get info on my contributions. Let me ask a slightly different form of the question: suppose I contributed  $10000 in 2000. And suppose it grew to $30000. If I withdrew $10000 in 2017 (equalling the original contribution), and then withdrew another $10000 in 2018, what would I answer about prior contributions?