I'm doing some work on pipe thicknesses. I have to find the minimum wall thickness possible of a pipe at a given point from four tjhicknesses as shown in the picture below. (The circles are meant to be offset from each other as shown)

I have tried calculating at each angle using trig.

Outside circle:

Inside circle:

[LaTeX ERROR: Compile failed]

With the wall thickness being

Substituting gives

Using matrix division these variables can be calculated.

I've also taken into account the fact that if the solution is one of the four measured widths that this doesn't work.

Unfortunately this is still giving the wrong answer, I suspect it might be partially down to the fact that as you can see in the original picture the angles that the measurements intersect the circles is not the same which is assumed in these calculations.

Can you guys think either of a way to fix my broken set of equations or an entirely different way to solve the problem? I'm finding what seems like a fairly simple problem deceptively difficult.

Thanks, Matt.