Liability in 2 states

I live in RI but work in MA.  Who am I filing with?  Am I being double taxed?  So far, it’s looking like I owe RI a ton of $