Earning in two different states

Hello

I worked  in Colorado and Michigan for year 2021. I have received two different W2s from my employer. I have received small interest from my trading account. They have provided me 1099-int. To which state will I pay tax for that interest earned. Also what will be my residency status in each state like resident or non resident