American Opportunity Credit/Lifetime Learning Credit phaseouts

Can anyone explain the phaseout procedures for these two credits? Im having some trouble with them