Working in one state living in another

I live in SC but commute each day to NC. My W2 shows split taxes for both states, how do I file