Art of Problem Solving

1987 AIME Problems/Problem 14