The sides of a triangle measure 4, 6, and 7. If the shortest side of a similar triangle is 12, what is the perimeter of the larger triangle?