Here is the picture of the question:
- $ABC$ is a right triangle.
- $m(CBA)=90^\circ$.
- $m(BAD)=2m(DAC)=2\alpha$.
- $D$ is a midpoint of $[BC]$.
- $E$ is a point on $[AD]$.
- $m(BED)=90^\circ$.
- $|DE|=3$.
- What is $|AB|=x$?
Tried lots of things which gives me some trigonometric identities, but none of them led me to the solution which is $x=6$. And even if it did, i prefer more geometric methods (all solutions are welcome though). Note that this could be an easy question, and i could probably missing something obvious.

(1) The brown dotted line is the extension of $BE$.
(2) The green dotted line ($AC’$) is the angle bisector of $∠BAE$ such that $\beta_1 = \beta_2 = \beta$. Another obvious fact is $\beta ‘ = 2\beta$.
(3) The blue dotted line is the perpendicular bisector of $AB$ cutting $AB$ and $AC$ at $P$ and $Q$ respectively.
By intercept theorem, $AQ = QC$.
By midpoint theorem, $QD = BP = PA$.
$L$ is point on $BC$ such that $EL \bot BC$. $EL$ is extended to cut $AC’$ at $N$. It should also be clear that $\angle 1 = \angle 2 = \beta’$..
The line $AEDM$ is the axis of symmetry for $\triangle ACC’$. Then, $\angle AMC = 90^\circ$. This means M is also on the circum-circle (centered at Q) of $\triangle ABC$.
Therefore, $\triangle BED \equiv \triangle CMD \Rightarrow DE = DM$.
$QA = QM \Rightarrow \beta_3 = \beta$. $\beta_4 = \angle 2 - \beta_3 = \beta \Rightarrow QD = DM$.
Result follows.