From fig; ED is parallel and equal to BC

To find the distance between their tops, we will have to find AD

Here as ED is parallel to BC, angle AED=90

According to the Pythagoras theorem,

AE^2 + ED^2 = AD^2

25+144=AD^2

169=AD^2

13=AD

Hence, distance between their tops is 13 m.