Moved in 2019 from SC to NC

We moved from SC to NC in July 2019 and have income and deductions for each state.  How do I apportion those amounts to each state?  I have completed the federal tax portion.