B2. Let $E$ be the midpoint of side $A B$ of rectangle $A B C D$ and $F$ the point on diagonal $A C$ such that line $B F$ is perpendicular to diagonal $A C$. Determine the ratio of the sides of rectangle $A B C D$ if segment $E F$ is perpendicular to diagonal $B D$.

(6 points)