# Word problem for semigroups

Let $\mathcal{P} = \langle X ;R \rangle$ be a semigroup which is not necessarilly finitely presented. Then it is natural to ask if you are given two words then are they equal modulo this presentation. This is the word problem (for semigroups).
Assume the word problem is soluble for $\mathcal{P}$. Then my question is,
if we are given two words $v$ and $w$ and we know they are equal modulo $\mathcal{P}$ then is it always possible to find the chain of relations connecting these two words?