This little problem is from the 2007 annual Harvard MIT mathematics tournament. This kind of problem reappears now and then in various mathematics competitions and the basic idea is the same - symmetry.
I am still super busy with my AI python project and I can see many of you have given likes and comments to my videos. Thanks a lot and I will try my best to answer your questions. Meanwhile, keep being excited about mathematics.