What is actual meaning of that $ax=b$ and $ya=b$ have unique solution?
Do x and y depend on each other?
Let $G$ be the semigroup
Since $ax=b$ have unique solution in $G$
∴ $\exists\, e\in G$ such that $ae=e \,\,,\forall a\in G$
( Hence $e$ is the right identity of $G$, is it not?)
Similarly, $ya=b$ has unique solution in $G$
∴ $\exists\, f \in G$ such that $fa=a \,\,,\forall a \in G$
( Hence $f$ is left identity of $G$, is it not?)
Now $fe=f$ ( ∵e is the right identity )
and $fe=e$ (∵f is left identity )
$\implies e=f$
∴ $e$ is the identity of element in $G$
Is my proof right?
It means that, for every $a$ and $b$ there exists exactly one $x$ such that $ax=b$, and there exists exactly one $y$ such that $ya=b$.
As for your proof: you started well. For every $a$ there will be unique $e$ such that $ae=a$. However, is that $e$ the same for all $a$’s?
Let’s pick $e$ for one particular $a$ and check that $be=b$ for all other $b$. Now, you know that $b=ya$ for some $y$. Thus, $be=yae=ya=b$.
The rest of the proof looks ok. You may want to complete it (existence of inverse etc) but it is fairly obvious how it will go.