Art of Problem Solving

2024 AIME I Problems/Problem 3