Retirement tax questions

How do I enter a distribution from an IRA, in Massachusetts, where:

-taxes were paid on the amount deposited

-the tax basis is not exhausted.

 

I don't see how to get the MA state return to adjust for that, and the tax on those IRA distributions is being added to the tax due.