Art of Problem Solving

2014 AMC 8 Problems/Problem 9