check the picture attached.
Let m(BAE)=m(ACD)=α
(BAE and ACD are congruent, since they are alternate interior angles, or Z angles)
Let m(ABE)=β.
So in triangle ABE, the measures of the angles are 90, α and β degrees.
This means that m(BCE)=β, since the 2 other angles of triangle BCE are 90 and α degrees.
thus, we have the similarity of triangles ABE and BCE,
so the following rations are equal:
[tex] \frac{AB}{BC} = \frac{BE}{CE} = \frac{AE}{BE} [/tex]
so
[tex] \frac{AB}{BC} = \frac{x}{5} = \frac{8}{x} [/tex]
so
[tex]\frac{x}{5} = \frac{8}{x}[/tex]
[tex] x^{2} =40[/tex]
[tex]x= \sqrt{40}= \sqrt{4*10}=2 \sqrt{10} [/tex] (inches)
Remark, we can also apply Euclid's theorem directly.