State tax filing

Thanks @ColeenD3,.

Follow up question, for the period when I was living in PA but working for an MA employer, which state should the tax be paid to? I just noticed that no tax was withheld by my employer for that 50 day period.