? How long did you live in the state of Maryland?. Did you work in a reciprocal state ,DC, Penn while living in MD?
https://taxes.marylandtaxes.gov/Individual_Taxes/Individual_Tax_Types/Income_Tax/Filing_Information/...
If you were in MD they consider you a full year resident if over 183 days but you should get a credit for taxes paid to another state.
Disclaimer: Not a tax professional. Information gathered from internet links. Anything dated in June 2019 was posted in prior years and is before the 2019 limits and changes.