Retirement tax questions

Thank you! Although, I owe a crap ton of money now for a mistake. Ugh...anyhow...

 

I assume Turbo Tax knows that the 6k is non deductible and should not be taxed and same for the 3880?

 

How do I verify that I'm not being taxed on the 9880 amount, but just the gains that I had to pull from the Roth IRA?