My local wages in 2 states is greater than total wages. How to proceed?

Hi, I have 2 states involved in W2, PA and NY. The addition of box 18 wages on both the W2s is bigger than box 1 of my W2. What should I consider as my wages when I have to add wages separately?