The sides of a triangle have lengths 2, 3, and 4. The perimeter of a similar triangle is 36. Find the length of the longest side of the larger triangle.​