The question is given below:
Prove that in $S \bigsqcup T,$ it must be that $S \bigcup T = S \bigsqcup T$
Hints I received are:
1-To write the question as: in $S \bigsqcup T,$ it must be that $ S\sqcup T=\textrm{in}_S(S)\cup \textrm{in}_T(T). $\
2- Take $U = S \bigcup T, f = in_S $ and $g = in_T.$
3- the problem will be in the uniqueness of $(f,g),$ you can find a function that breaks this uniqueness.
My question is:
I do not understand how are hints 2 and 3 can be used to create a full solution, could anyone help me in this please?

Suppose we have ( in the category $\textsf{Set}$) some set $S \coprod T$ and maps $\text{in}_S$ and $\text{in}_T$ that obey the universal property for coproduct (sum).
First we can see that the $\text{in}_S$ map is injective. Suppose not and we have $s_1\neq s_2$ in $S$ with $\text{in}_S(s_1) = \text{in}_S(s_2)=p \in S \coprod T$. Then define $U=\{0,1\}$ and $f$ is defined on $S$ as being $0$ on $s_1$ and $1$ for all other points. $ g: T \to U$ is just constantly $0$, it’s not important. Then there should be a map $ f \coprod g$ completing the diagram uniquely. But
$$(f \coprod g)(p)= ((f \coprod g) \circ \text{in}_S)(s_1) = f(s_1)=0$$ and
$$(f \coprod g)(p) = ((f \coprod g) \circ \text{in}_S)(s_2)= f(s_2)=1$$
And this is a contradiction. In a completely analogous way we can show that $\text{in}_T$ is injective.
Then we can show that $$\text{in}_S[S] \cap \text{in}_T[T] =\emptyset$$
which partly justifies the name disjoint union for the coproduct. Suppose some $p$ lies in the intersection. So we can write $p = \text{in}_S(s_0) = \text{in}_T(t_0)$ for some $s_0\ in S, t_0\in T$.
We again use $U=\{0,1\}$ and define $f: S \to U$ by $f(s_0)=0$ and $1$ elsewhere, and $g: T \to U$ by g(t_0)=1$ and $0$ elsewhere. If $f \coprod g$ exists completing the diagram, then similarly:
$$(f \coprod g)(p)= (f \coprod g) \circ \text{in}_S)(s_0) = f(s_0) = 0$$
and also
$$(f \coprod g)(p)= (f \coprod g) \circ \text{in}_T)(t_0) = g(t_0) = 1$$
which is a contradiction and $f\coprod g $ cannot exist, again.
Now the claim is that $$\text{in}_S[S] \cup \text{in}_T[T] = S \coprod T$$
and again we assume this is not the case, and we have some $p$ in $S \coprod T$ that is not in the left hand union of subsets. Let $h: S \coprod T \to S \coprod T$ be defined by $h(p)=q$ for some $S \coprod T\ni q \neq p$ and $h(x)=x$ otherwise. Then both $1_{S \coprod T}$ and $h$ (and these are different maps!) make that the diagram for $f= \text{in}_S$ and $g = \text{in}_T$ commutes. So in that case the map from the universal property is not unique, which cannot happen. So $S \coprod T$ is a disjoint union of the injective images $\text{in}_S[S]$ and $\text{in}_T[T]$ of $S$ resp. $T$.
As usual with these objects defined by universal properties, the object is uniquely determined up to isomorphism (bijection in this category) and the standard construction $S \times \{0\} \cup T \cup \{1\}$ with $\text{in}_S(s)=(s,0)$ and $\text{in}_T(t)=(t,1)$ is one way to create an instance of this coproduct. But the universality itself already implies many of its properties, if we pick the right objects and maps to apply it to. A mixture of "point-based" and category theory based arguments is needed here.