The key for solution was realizing that the ends of the sticks was on the same distance from origin. How to prove that?I have a function F(angleA, angleB). I took derivatives dF/angleA and dF/angleB, they must be equal to zero. Then what?