Let $\mathcal{C}$ be a category with coproducts.
Show that if $G:\mathcal{C} \to \mathbf{Set}$ is representable then $G$ has a left adjoint.
I can't seem to wrap my head around this nor why coproducts are required.
By definition $G$ is naturally isomorphic to some hom functor $\mathcal{C}(X,-)$ but I don't know where to go from here.
Hint: Let $G=\hom(X,-)$. Consider $F:Set\to C$ by $S\mapsto \cup_S X$ ($S$ copies of $X$).