Art of Problem Solving

2019 AIME I Problems/Problem 6