In the diagram below, $AB$, $EF$ and $DC$ are perpendicular to $BC$. $AEC$ and $BED$ are straight lines. $AB = x$, $EF = h$ and $DC = y$. Then how can $h$ be expressed?
Here is the image:
I drew the shape and used Pythagoras' theorem for the two triangles and made them equal to each other since both equal $h$. Then I used Pythagoras' theorem for the two large triangles and then I was stuck.
