I'm trying to generaliz this proposition: Let $G$ an abelian group and $D$ a divisible grop, for every $H\leq G$ and every homomorphism $f:H\to D$ exists $\overline{f}:G\to D$ an extension of $f$.
I want to prove in the case when $G$ is non-abelian and $H$ is a normal subgroup of $G$.
I was trying to imitate the proof of the clasic result (I put this proof below as a picture) but I have a problem in the unique expressions as sumands of the elements.
Any help or hint is welcome.

