In the figure below, we see a triangle with its inner square. The lengths of the sides of the triangle are 13, 20 and 21. Calculate the length of the sides of the square.

In the figure below, we see a triangle with its inner square. The lengths of the sides of the triangle are 13, 20 and 21. Calculate the length of the sides of the square.