Art of Problem Solving

2023 AIME II Problems/Problem 5