State tax filing

Thanks for your reply!

Maybe I did not describe my issue clearly.

I lived in New York City from Jan-Jun 2021, and worked for a company A in New York. W2 salary from company A is 40,000. and I have a capital gain10,000.

Then I moved to Wisconsin and live from Jul-Dec 2021, and worked for a company B in Wisconsin. W2 salary from company B is 60,000.

 I contributed New York 529 in April 2021 (10,000 dollars)

How shall I fill the two blanks below?

Thanks529.JPG