$(x+yi)^{3}=(x^{3}\text{−}3xy^{2})+(3x^{2}y\text{−}y^{3})i=18+26i$ which leads to $$\begin{cases} x^{3}\text{−}3xy^{2} & =18\\ 3x^{2}y\text{−}y^{3} & =26 \end{cases}$$
The problem here is that I don't know to precede further.
I've been told to set $y=tx$ in the equatlity $18(3x^{2}y\text{−}y^{3})=26(x^{3}\text{−}3xy^{2})$ and then if $x\neq0$ and $y\neq0$ then $18(3t\text{−}t^{3})=26(1\text{−}3t^{2})$ which is equivalent to $$(3t−1)(3t^{2}-12t-13)=0$$. The only rational solution of this equation is $t=\frac{1}{3}$; hence, $x=3,y=1$, and $z=3+i$.
But I don't understand that solution (the substitution $y=tx$ to be specific) and how they ended up with $18(3t\text{−}t^{3})=26(1\text{−}3t^{2})$ from that substitution?