Notice how the diagonal splits the square into two right triangles. To find the length of the diagonal, we can use the Pythagorean theorem: where a and b are the legs of a right triangle and c is the hypotenuse, or the side opposite the right angle.
In this case, a is 5, b is 5 and we're trying to solve for c.