Education

Q. . Do I file in both MA and MD? 

A. No.  Getting a W-2 or even a pay check from another state does not obligate you to pay tax to that state (it is not "MD source income").