In the given figure, $ABCD$ is a square of side $3$cm. If $BEMN$ is another square of side $5$cm & $BCE$ is a triangle right angled at $C$. Then the length of $CN$ will be:-
I plotted this on GeoGebra:
I can't figure out how to use the smaller square for the question. I did try finding the area of triangle $CBN$. For that I tried subtracting the area of $CEMN$, but to no avail. I want to approach this problem mathematically rather than graphically.
I highly suspect that there is a way to involve the smaller square somehow. Or, if I somehow prove that $\triangle BCE\sim \triangle CBN$, that could solve it.

Rotation around $B$ for $-90^{\circ}$ takes $C$ to $A$ and $N$ to $E$, so it takes $CN$ to $AE$. So $$CN = AE = \sqrt{3^2+7^2}=\sqrt{58}$$