Suppose the solutions to a general cubic equation $ax^3+bx^2+cx+d=0$ are to be found. Then according to Cardano's method, First a variable substitution must be carried on to convert the general cubic to depressed cubic. $$ax^3+bx^2+cx+d=0\rightarrow t^3+pt+q=0\ \text{where $t=x-\frac{b}{3a}$}$$ This seems pretty clear but what happens next is not so obvious for me.
Now we take $t=u+v$ to get $u^3+v^3+(3uv+p)(u+v)+q=0$. Assuming $3uv+p=0$, we get the system $$u^3+v^3=-q$$ $$uv=\frac{-p}{3}$$. Using Vieta's formula, the quadratic equation with $u^3$ and $v^3$ as roots is $$x^2+qx-\frac{p^3}{27}=0$$ Now the roots for quadratic can be found by analysing the discriminant.
My doubt is that what was the inspiration behind assuming $3uv+p=0$, except helping to form the quadratic equation.
Please help
THANKS

One source of inspiration may have been looking at the binomial expansion of $(u+v)^3$ and mapping it to the cubic $t^3 + pt +q = 0$.
$$\begin{align*}(u+v)^3 &= u^3 +3 u^2v +3uv^2+v^3 \\ \\ &= u^3+v^3+3uv(u+v) \\ \\ (u+v)^3 - 3uv(u+v)-(u^3+v^3)&= 0\\ \end{align*}$$
Substituting $t =u+v$ yields
$$t^3-3uvt-(u^3+v^3) =0$$
Which forces the equalities $$ p = -3uv$$ $$q= -(u^3+v^3)$$ to complete the mapping of the depressed cubic equation to the equation for the cube of a binomial.
Is this what really happened historically? I don't know. Probably not.