Retirement tax questions

I have completed both the Federal Maryland tax forms. Social security is $22,000. Subtracting that amount from $34,300 leaves $12,300 which should be my exclusion.

 

I'm 81 years old and my pension is from an employee retirement system.