4. A fox and an eagle lived at the top of a cliff of height 6m whose base was at a distance of 10m from a point A on the ground. The fox descends the cliff and went straight to the point A. The eagle flew vertically up to a height x and then flew in a straight line to point A, the distance, travelled by each being the same. Find the value of x.