State tax filing

The company I work for is located in another state but i live and work in PA but on my W2 i got state taxes deducted for PA and MA. How does that affect my filing?