State tax filing

Thanks for the answer! To clarify my post,

(a) I was a tax resident of MD the entire year and had logding in both states the entire year

(b) my employer is in PA and the work is in PA. This PA employer withheld MD and PA state income taxes as shown in my W2.

please clarify your guidance based on this clarification, thanks