Part of 2023 South Africa National Olympiad
Source: The South African Mathematical Olympiad Third Round 2023 P2