I came across a problem from SASMO(Singapore) Olympiad sample paper. Here is the problem:
I gave this problem to my students and made them solve. Happily, they have solved and told the answer as $22$cm.
Now comes the Tragedy!!!
I asked them to find the length of $OR$. So let us find now.
It is evident that $$RP=OQ=7$$
Let $OR=x \Rightarrow OP=10-x$. Now by Pythagoras theorem, we get $$x^2+(10-x)^2=49 \Rightarrow 2x^2-20x+51=0$$ which has complex roots. Boom!
EDIT: Well then what is the moral? We need to find Maximum perimeter of rectangle that can be inscribed in a quarter circle of radius $7$cm.
Let the Perimeter be $2\lambda$
We have $$OR^2+RP^2=49 \Rightarrow x^2+(\lambda-x)^2=49 \Rightarrow \lambda=x+\sqrt{49-x^2}$$
Take $x=7\sin t$, we get $$\lambda=7(\sin t+\cos t) \leq 7\sqrt{2} \Rightarrow 2\lambda \leq 14\sqrt{2}<20$$