I like the Math answer, a lot easier than my solution. By the way anyone using the calculator at Buster would, according to thier drawing, get the wrong answer. thier drawing shows the radius to the apex of a joint, so the pipe would not fit inside.
Rick
Rick