I want to roll my after tax IRA contribution to a roth IRA and the earnings into a traditional IRA. How do I do that?

Link to IRS page indicating I can.  https://www.irs.gov/retirement-plans/rollovers-of-after-tax-contributions-in-retirement-plans#:~:tex....

Can I roll over my after-tax contributions to a Roth IRA and the earnings on my after-tax contributions to a traditional IRA?
Yes.  Earnings associated with after-tax contributions are pretax amounts in your account.  Thus, after-tax contributions can be rolled over to a Roth IRA without also including earnings.  Under Notice 2014-54, you may roll over pretax amounts in a distribution to a traditional IRA and, in that case, the amounts will not be included in income until distributed from the IRA.