Part Year resident: Entering income I received while living in another state? (DC to MD)

Hello,

I made about $42,000 while living and working in DC from January to April 2018. In May, I moved to Maryland and between May and December I made $43,000.

For both "Part Year Resident" forms, I'm asked to enter any income I received while living in another state. Does this mean that for DC, I should enter that I made $43,000 while living in Maryland? And then for MD, does this mean I would enter that I made $42,000 in DC?

Thank you!