You can not file both tax years together. You must file each return separately.
Do this first: To prepare a new prior-year return (2021), you'll need to purchase and download that year's TurboTax software for PC or Mac (click on this link). TurboTax Online and the mobile app are only available for the current tax year.
Prior-year returns must be paper-filed, as e-filing is no longer available for them.
After finishing your 2021 tax return, you can then proceed to file your current (2022) tax return.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"