it-112-r 24a question for ma

I leave in ny and work in ny (less than 1month ma).  I paid ma tax.

I file ny tax,  and then ma tax.

What value of should I enter in form it-112-r question 24a?

 

TP should not be greater than the tax imposed by the other state 1009 (not sure where is this value coming form.

Thanks.