Let z=x+iy
∵|z+1|=z+2(1+i)
⇒|x+iy+1|=x+iy+2(1+i)
⇒√(x+1)2+y2=(x+2)+i(y+2)
Equate the real and imaginary parts,
⇒√(x+1)2+y2=(x+2)…(1)
andy=−2⋯(2)
Put value of 𝑦 in equation (1)
∴√(x+1)2+(−2)2)=(x+2)
⇒(x+1)2+4=(x+2)2
{squaring both of side}
⇒x2+2x+1+4=x2+4x+4
⇒x=12
Therefore, z=12−2i