Art of Problem Solving

2025 AIME I Problems/Problem 5