Art of Problem Solving

2020 AMC 12B Problems/Problem 24