Art of Problem Solving

2022 AMC 10B Problems/Problem 23