The lengths of the sides of a triangle are 4,6, and 7. If the length of the longest side of a similar triangle is 21, find the perimeter of the larger triangle.