Please follow https://www.irs.gov/uac/Tax-Benefits-for-Education:-Information-Center.