If the couple filed a joint return for 2022 the AGI is the same amount for each spouse. You just use the amount from line 11 of their 2022 Form 1040.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**