Art of Problem Solving

2018 AIME I Problems/Problem 3