State tax filing

I live in RI and got unemployment from MA - do I file both states or just one?  I am a bit confused from the other state answered questions