The length of a rectangle is 3 cm more than twice its width. If the perimeter of the rectangle is 36 cm, find the dimensions of the rectangle.