The length of the diagonal of a rectangle is 10cm. If the length is 2cm longer than its width, find the length and the width of the rectangle.​