Say you have two surfaces of genus 2, say $X$ and $Y$ and you want to attach them via homotopy attaching maps $f$ along their waist curves. Then what will the fundamental group of the adjunction space $X\bigcup_fY$ be?
Any Hints on how to proceed?
Thanks