NY resident working in PA

I am full time New York resident but work all year in Pennsylvania. Pennsylvania also takes out a local tax, plus state tax. I know I need to do the resident credit IT 112 R form for my NY return but do I add the PA state tax plus the local tax together to get what I paid to my non resident state?