The situation is as show in the following diagram.
The height of the building is respresented by AO. The football is hit from point A and it hits thr ground at B.
Triangle OABj is an isoseceles rigth-angled triangle. Therefore, , AO=OB=10m
`AB=sqrt(OA^(2)+OB^(2))=sqrt(10^(2)+10^(2))=sqrt(200)`
`AB=10sqrt(2)m`
Displacement `=10sqrt(2)m`