One of the properties of a rectangle is congruent diagonals. Since the diagonals are congruent to each other, DG and CG should equal to the same length. Therefore, you set up a equation with DG and CG equaling to each other: 3x + 6 = 15. Solve for x, and you should get 3.