Suppose $G=\langle g_1,...,g_n|r_1,...r_m\rangle$. Show there is a pointed space $(X_G,x_0)$ with $\pi_1(X_G,x_0)=G$.
Hint: Use Van Kampen's theorem.
My attempt: First note that $G$ is the amalgamation of $G_i:=\langle g_i|r_1,...,r_m\rangle$, ie: $G= G_1\ast...\ast G_n$. Then since $G_i\cap G_j={e}$, the identity, for $i\neq j$, the pairwise intersections are trivially path connected. If we let the base point be $e$, then all I need to do to show is a that the space can be somehow represented by a union of the $G_i$, but don't know how.