The perimeter of the bottom of a rectangular swimming pool is 54 meters. The area is 170 square meters. What are the dimensions of the pool?