AD=5
D=mijl. BC ==> AD=mediana in triunghiul ABC ==> 2AD=BC
BC= 2 ori 5 = 10
PITAGORA ==> AB^2+AC^2=BC^2
AB^2+6^2=10^2
AB^2+36=100
AB^2=64
AB=√64=8