Refer to the diagram of the two squares ABCD and CEFG.

CD is a side of square ABCD. From the diagram, CD = 5 cm.
DG is a side of square CEFG. From the diagram, DG = 3 cm.

Final Answer: CD = 5, DG = 3