Art of Problem Solving

2019 AMC 10B Problems/Problem 8