State tax filing

thank you so much for your help!

 

I moved to Virginia ( where I have been working for 10 years)  in 2019  FroM Maryland.
I lived the whole year in Virginia but I forgot to change my address and I paid Maryland State taxes. How I can get the refund from Maryland and pay to Virginia? Thank you so much.