2 Attachment(s)

3D Trig - Two 45 Deg Elbow At Differing Hts

I have attached two images showing my problem.

I have two pipes, each with a 45 Deg elbow.

>The pipes are at different heights (H).

> The Pipes do not slope.

>The height of the pipes is known and the angle between the pipes is known.

>The elbows can be positioned anywhere along the pipe centre lines.

>The elbows can also be swivelled 360 deg around the pipe centre lines.

Q) From my attached images, how do I calculate distances 'L' and 'W'?