You have not mentioned which states are involved. When you work in one state and live in another, it is important to prepare the return for the state you work in first, before preparing the return for your resident state so that you get credit for the tax paid to the non-resident state.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**