The length of a rectangular table is 3 times its width. If the total perimeter of the table is 36 meters. What is the length and the width of the table?