RI resident working remotely for Ma employer, do I apportion income?

I live in RI but work remotely for a company in MA. Mass taxes were deducted from my paycheck and they reflect on my W2 form. How do I file my state taxes? Am I able to apportion or do I just pay Mass taxes and get a refund from RI for taxes paid to another state?

 

Thank you!