Multiple State Tax Returns

For a Trust, If you file State returns in multiple states for example Wisconsin and California, it appears that both states want to tax Capital gains and Real Estate.  How do I tell What should be taxed by which state?   Would I need to remove items from one state or other? if so where would I do it?