Cut a given straight line so that the sum of the square of one part and twice the square of the other part equals a given size.
Given a line of length $L$ which is cut in two pieces, lengths $x$ and $L-x$, I first thought of constructing the squares with sides $x$ and $\sqrt{2}(L-x)$ but I cannot relate the total area to a given length.
If $M$ is the given length the length to construct is $$\frac{2L\pm\sqrt{3M-2L^2}}{3}$$ but I assume there is an easier way to solve this problem using only straight-edge and compass.
Any idea how to solve this problem? TIA.


