Geometric Langlands correspondence for SL (2), PGL(2) over the pair of pants