My employer sent me two W2s one for NJ and another one for NY. I am confused as to how I should file my taxes?

My employer sent me two W2s one for NJ and another one for NY. In my NJ W2, my state wages are reported as $7,060. In my NY W2, my state wages are reported as $7000. However, I only earned $1000 in NY and $6000 in NJ in the whole of 2016. I am confused as to how I should file my taxes?