Daphne has to assemble the shape of the top surface of a toy using the two triangular pieces shown below. She is aware that the shape of the surface should be a rectangle. What will be the length of the sides of the rectangular top surface after it is assembled?