Given that both triangles are similar, then their corresponding sides satisfy a proportion.
The next relation must be satisfied:
[tex]\frac{AB}{DE}=\frac{BC}{EF}=\frac{AC}{DF}[/tex]Let's suppose that AB and DE are the shortest sides of each triangle, then:
[tex]\begin{gathered} \frac{AB}{DE}=\frac{4}{12}=\frac{1}{3} \\ or \\ 3AB=DE \end{gathered}[/tex]Also,
[tex]\begin{gathered} 3BC=EF \\ 3AC=DF \end{gathered}[/tex]The perimeter of the smaller triangle is,
[tex]\begin{gathered} P=AB+BC+AC \\ P=4+6+7 \\ P=17 \end{gathered}[/tex]The perimeter of the larger triangle is,
[tex]\begin{gathered} P=DE+EF+DF \\ P=3AB+3BC+3AC \\ P=3(AB+BC+AC) \end{gathered}[/tex]But, AB + BC + AC is the perimeter of the smaller triangle, which is 17, then the perimeter of the larger triangle is 3*17 = 51