A dilation with a scale factor of 3 takes triangle PQR to triangle XYZ. What is the ratio of the perimeter of triangle PQR to the perimeter of triangle XYZ?