There needs to be a slight adjustment since the circumferences are separated by (C-R-r).
Let R be the radius of the larger pipe (includes pipe wall)
Let r be the radius of the smaller pipe.
Let s be the distance separating the two pipes.
theta is the angle at the intersection of the tangents to the pipe (theta in radians):