Let $X$ be the space given by joining two disjoint tori at a single point p.
By Van Kampen this can be split into the spaces of the two tori, with their intersection the point (n.b. You can also consider adding a "piece" of the other torus to each subspace, but it still deforms to these sets)
Van Kampen then gives us:
$$\pi_1(U) = \langle a,b ; ab=ba \rangle$$ $$\pi_1(V) = \langle c,d ; cd=dc \rangle$$ $$\pi_1(U\cap V) \cong 0$$
Now, from my notes this gives us that $\pi_1(X=U\cup V) = \langle a,b,c,d ; ab=ba, cd=dc \rangle$. However in thinking about this it occurs to me that by our group action surely $ac = ca$ (informally, attaching two loops around the seperate tori is the same regardless of which "direction" you go around), so how do I include this relation, considering it can't be inherited from the inclusion on the intersection? Additionally, how do I write it?