I have seen a variety of pipe flange coupling pieces in the hardware store. There are so many different types for so many different jobs.
If I had to choose one, I wouldn't know where to start. This is the kind of thing that I always ask a professional about. In fact, I would probably call a handyman if I needed to fit two pipes together for any reason.
Even with the aid of flange coupling, things can go wrong. It's best to know exactly what you are doing in order to avoid a leaky pipe.