Răspuns :

ip=c+3
(c+3)²=c²+c²
c²+6c+9=2c²
c²-6c-9=0
c=6(1+√2)/2=3(1+√2)
P=2*3(1+√2)+(6+3√2)
P=6+6√2+6+3√2=12+9√2=3(4+3√2)

daca x cateta 
x+3 ipotenuza cu Pitagora 
i²=c²+c²
(x+3)²=2x²
x²+6x+9=2x²
x²-6x-9=0
solutia
x1,2=  (6+si - √36+36)/2
x1=6-6√2 <o si nu poate fi solutie
x2=(6+6√2)/2=3+3√2
P=2(3+3√2)+6+3√2=12 +9√2=3(4+3√2)