State tax filing

I have 2 state incomes in one W2 at box 16, same company: 1st one withhold CA state tax , 2nd one without tax hold for MA.  I am resident of MA and the 2nd one is just portion of 1st income due to some reason.

 

I am filing nonresident of CA, resident of MA, Turbotax only give my options of either report 1st + 2nd income or use only 2nd one for calculating MA resident tax. What shall I do?  thanks