Use isosceles triangles, similar triangles and a quadratic equation.