You need to apportion the SS and Medicare taxes paid (they are
eligible for a deduction in MA), based on where wages subject to SS and
Medicare tax were earned.
Divide your non-MA earned income by your
total earned income. Multiply by total SS and Medicare tax paid to get
the non-MA portion of SS and Medicare taxes.