Retirement tax questions

luckily, I have all records.

 

on these 2 W2, no code AA, both have code D, one is $17000, one is $7300.

 

they both have code DD, and 1 W2 also has code C.

 

and I was 40 years old in 2018.