Income in 2 states

I reside in Virginia, but have non-resident income via K-1 in South Carolina.  How do I apportion the income between the two states to avoid double taxes?