A triangle has a perimeter of 112 cm. Each of the two longer sides of the triangle is three times as long as the shortest side. Find the length of each side of the triangle.