Let's assume that the side of the square be x units . We also knows that
Where , S is the side of the square
Now , as per question ;
[tex]{:\implies \quad \sf x^{2}=25x^{2}+30x+9}[/tex]
[tex]{:\implies \quad \sf x^{2}=(5x)^{2}+2\cdot 5x\cdot 3 + (3)^{2}}[/tex]
[tex]{:\implies \quad \sf x^{2}=(5x+3)^{2}\quad \qquad \{\because (a+b)^{2}=a^{2}+2ab+b^{2}\}}[/tex]
Raising power to 1/2 on both sides will give us
[tex]{:\implies \quad \sf x=\pm (5x+3)}[/tex]
But , as length can never be -ve . So ;
[tex]{:\implies \quad \bf \therefore \quad x=(5x+3)}[/tex]
Now , we have the side of the square , now finding perimeter ;
[tex]{:\implies \quad \sf Perimeter=4(5x+3)}[/tex]
[tex]{:\implies \quad \bf \therefore \quad Perimeter=20x+12 \:\: units}[/tex]
Hence , The required perimeter is 20x + 12 units :D