Can you solve this maths olympiad question?