The measures of two corresponding altitudes of two similar triangles are 6 m and 14 m. If the perimeter of the first triangle is 21 m, what is the number of meters in the perimeter of the second triangle?