This is what worked for me:
https://ttlc.intuit.com/community/state-taxes/discussion/re-ma-state-tax-double-counting-income/01/2...