The area of a rectangle is three times its perimeter. If the length of the rectangle is 5 cm longer than its width, find the length and width of the rectangle.​