The diagram shows two posts perpendicular to the ground and 4m apart, and a 5m long wire connecting their tops. Extending this wire until it is attached to the ground, another 4m of wire is used. What is the distance between the point where the wire is attached to the ground and the nearest post?