Wait, I just realized that you're talking about the same codes doubled up. You should only have one Code D and 1 code AA for the year...maybe those others with 18 on the end are from 2018?
You wouldn't enter those. Sounds like someone didnt understand how to do the W2s properly. You may need to clarify with the employer which one should be used.