State tax filing

Thanks for your response. I'm a bit confused by this re: state taxes. I get paid in PA, and I've had state and local taxes taken out of my paycheck in PA. So I presume I will have to file a PA state return and my husband will have to file an NC one. Can I list myself as a resident of NC but still pay PA state taxes? If so, how do we make sure we're not paying state taxes on our joint income in both states?