The diagonal of any square always occurs in a ratio of [tex]\sqrt2:1[/tex] relative to the square's sides. That means if [tex]s[/tex] is the side length, then [tex]\sqrt2s=8[/tex] gives the length of the diagonal. It follows that [tex]s=\dfrac8{\sqrt2}[/tex].