Schedule A to Form 1040

If line17 of skd A is =22,315. why is ln12 form 1040 =30,700? filing jointly..