Impact on MAGI used to calculate Part A /B Adjustment

My understanding is that you must pay taxes on up to 85% of your Social Security benefits if you file a: Federal return filing Joint, and you and your spouse have "combined income" of more than $32,000.   What amount of this income is included in the MAGI calculation for determining the Part A/B adjustment for medicare?