Will ran the diagonal distance across a square field measuring 40 yards on each side. James ran the diagonal distance across a rectangular field with a length of 25 yards and a width of 35 yards. Who ran a longer distance, and how much longer did he run?