AB= V (41-25)^2+30^2=V 1156=34cm
===================================================
Lunghezza segmento AB:
$\small AB= \sqrt{30^2+(41-25)^2}$
$\small AB= \sqrt{30^2+16^2}$ (teorema di Pitagora)
$\small AB= \sqrt{900+256}$
$\small AB= \sqrt{1156} = 34\,cm.$
AB = √30^2+(41-25)^2 = 34 cm