Art of Problem Solving

2020 AIME II Problems/Problem 8