Let AH=AD=x
∠BAH=45o
⇒rx=tan45o
⇒x=r
⇒AB=√AH2+BH2=r√2
BC=r
⇒AC= r√2−r=r(√2−1)
Similarly, EF=r(√2−1)
Length of diagonal AE=2r+2r+4r+2r(√2−1)
=r(6+2√2)
If length of square =9
⇒ length of diagonal =a√2
⇒a√2=r(6+2√2)
⇒ra=√26+2√2.