A right angle triangle ABC of sides $3$, $4$, and $5$ ($AC=5$) is fit in a square such that $A$ is also vertex of square . Find the side of square.
Some error is occurring while uploading picture. If you have some problem understanding ask me in comments.
My attempt:
I tried to use Pythagoras by assuming side $x$. But I think I am missing something. There should be an easy way to finish it.
\color{red}{ Is this square unique ?}
Establish the ratio below from the two similar right triangles with 3 and 4 as hypotenuses,
$$\frac ax=\frac{a-x}{\frac34 x}$$
Use $x=\sqrt{16-a^2}$ to get the equation $\sqrt{16-a^2}=\frac14a$, which yields
$$a=\frac{16}{\sqrt{17}}$$