An equilateral triangle and a square both have perimeters of 48 inches. What is the ratio of the length of the side of the triangle to the length of the side of the square