Art of Problem Solving

Mock AIME 2 2010 Problems/Problem 14