How do I calculate how much to withdraw from my 2023 Roth IRA contribution to avoid the 6% penalty and how does the 2023 MAGI bracket ($138,000 - $153,000) apply?

I can't see how the TurboTax guided questions get to this calculation.