Problem

Source: 2013 Saudi Arabia BMO TST II p1

Tags: geometry, cyclic quadrilateral, right triangle, isosceles



In triangle $ABC$, $AB = AC = 3$ and $\angle A = 90^o$. Let $M$ be the midpoint of side $BC$. Points $D$ and $E$ lie on sides $AC$ and $AB$ respectively such that $AD > AE$ and $ADME$ is a cyclic quadrilateral. Given that triangle $EMD$ has area $2$, find the length of segment $CD$.