Connecting two sketches to get a smooth curve to create a pipe.

Hi all
I want to connect the two sketches to get a curve and create a pipe. Please help me. I have attached the part also. Would like to learn. If some once can explain in steps.