I would have though (sic) Marv would chime in on this math problem.
No point. The OP has already calculated the angle between the two pipes somehow. Since two lines define a plane, that's all there really is to know.
I don't think anyone here really wants a mathematical solution but I'll outline the technique anyway.
Each pipe can be considered a vector. Then calculating the dot product between the two vectors will yield the angle between them.
Define an xyz coordinate system with its origin at the point labeled "start point" in the diagram.
Determine the coordinates of the end of the first pipe, which is the point of intersection, and label them x1, y1 and z1.
Using the same coordinate system, determine the coordinates of the end of the second pipe and label them x2, y2, z2.
Define L1 to be the length of pipe #1
L1 = sqrt (x1^2 + y1^2 + z1^2)
Define L2 to be the length of pipe #2
L2 = sqrt ( (x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2 )
Then:
cos(phi) = [-x1*(x2-x1)-y1*(y2-y1)-z1*(z2-z1)] / [L1*L2]
where phi is the angle between the two pipes.