Part of 2024 Girls in Mathematics Tournament
Source: 2024 Girls in Mathematics Tournament, Level A, Problem 2