State tax filing

As I am filling out the state tax return for MA, it is asking for the non-MA FICA and Medicare earnings, but none of my W-2s have that broken down. They just have the full amounts. I lived and worked in MA for part of the year and in NY the other part - so I have to file taxes for both states. I am trying to determine how to break down those earnings.