W2 form s from two different states with different last names

How should I file my W-2 forms if they are from two different states with two different last names? Which w-2s should I file ?