Given:
The area of square 1 is 25 square units.
Its length of the side is,

The area of square 2 is 16 square units.
Its length of the side is,

It gives,
Consider the right triangle,

So, the length of square 3 is 3 units. Its perimeter is given as,

Answer: the perimeter of square 3 is 12 units.