State tax filing

I am in a similar situation.  Two states (MO and VA) with interest earned on a savings account (approx $1,200) and dividends/cap gains (around $3,000).  How do I split the unearned income between two state income filings?  Four months in one state and 8 months in the other state.