Art of Problem Solving

1999 AMC 8 Problems/Problem 21