Two triangles are similar. The sides of the first triangle are 4,5,and 6. The largest side of the second triangle is 24. Find the perimeter of the second triangle.