income from 2 states

How do I separate Income from 2 states so that State filings are accurate?