A rope goes from one building to another. The distance between the buildings is 10m, and the rope is tied at each building at a point 8m and 4m from the ground. Find the length of the rope.