How do I know my adjusted gross income and how much tax I paid in North Dakota? I'm trying to do my Minnesota taxes (where I reside). Do I use numbers from my (ND) W2?

I'm trying to do my Minnesota taxes.  I reside in MN and work in North Dakota.  Your form is asking for Adjusted Gross Income, where do I find that?  Your form is also asking for the tax paid in North Dakota.  How do I find that out?  I already completed the North Dakota portion of my taxes through your website, does your website tell me somewhere?  Or do I use the "Wages, Tips, and other compensation" portion of my W-2?  Then, for my tax paid in North Dakota section, do I use the State income tax box on the W-2 (box 17)?  If not, where am I supposed to find this information?