The widest measurement of a square is the diagonal
The diagonal is 8
So you have a right angled, isosceles triangle with hypotenuse=8 (the legs are 2 sides of the square)
Now you sketch it and then try to work it out for yourself.
Please no one answer over me.