First, please try to use better titles. You are posting to a math website. Does "math" really provide any information?
Similar triangles are PROPORTIONAL. This is all you need.
Comparing the bases 16:24 ==> 2/3
Comparing perimeters (21+21+24)*(2/3)
If you insist, let's call 'a' the length of the side of the smaller triangle: \(\displaystyle \frac{16}{24} = \frac{a+a+16}{21+21+24}
\)
Varous ways to go about it.