Part of 2022 Centroamerican and Caribbean Math Olympiad
Source: 2022 Centroamerican and Caribbean Mathematical Olympiad, P5