State tax filing

I paid 7960 for SS and 1973 for Medicare in MA and later 7960 SS and 2226 Medicare in NYState, what will be my Non-Massachusetts portion of deductions? Thank you.