Comment: Again, trivial problem once you see the solution. Who said anything about staying in the plane?

More generally, I wonder if these two problems can be solved without a "flash of insight"? Probably, if you should try to program a computer to solve them! Then you would explicitly have to state the constraints and - hopefully - question them.