Simplest way to cope pipe

What is the simplest way to mate Exhaust pipe together?

In my example I would like Pipe A and Pipe B to be separate pieces that are coped to a perfect fit.

SolidworksGeneral