It is very important to remember that you cannot claim any of the college tax credits, including the AOTC, based on expenses that were used to calculate the tax-free portion of a distribution from a 529 college savings or prepaid plan, or a Coverdell Education Savings Account (ESA).
FORBES: College Tax Credit: The $2,500 American Opportunity Tax Credit