In the isosceles triangle ABC, the angle B is equal to 30∘, and AB=BC=6. The height CD of the triangle ABC and the height DE of the triangle BDC are drawn. Find the length BE.