The length of a rectangular pool is three times its width. If the perimeter of the pool is one hundred and sixty meters, find the length and width of the pool.