Because it is square, the distance from home to first base is the same as first base to second base.
Home to First is one side of a right triangle, first to second is the second side of the right triangle and then home to second base would be the hypotenuse of a right triangle.
Using the Pythagorean Theorem we can solve for the hypotenuse: