A rectangle with sides 13 cm and 7 cm has the same diagonal as a square. What is the length of the side of the square. Give your answer as a surd.