While studying, I came upon the problem "Two corridors of widths $a$ and $b$ intersect at right angle. What is the length of the longest pipe that can be carried across the two corridors, touching the corner of the wall where the corridors meet?"
The explanation is not detailed, but the answer is shown as $(a^{2/3} + b^{2/3})^{3/2}$. I have attempted the problem using trigonometry and derivatives, but got stuck early in. Could someone help with this problem?