Use, again, the Pythagorean theorem - there's a right angled triangle
with AB being the hypotenuse, and sides of lengths 4 and 8
so
[tex]AB^2=4^2+8^2=16+64=80\\AB=\sqrt{80}\approx 8.94[/tex]