Two side-by-side squares are inscribed in a semicircle. The diameter of the semicircle is $16$. What is the sum of the two squares' areas?
This is a bonus question from my online math class that I've been trying to solve but haven't gotten very far. I named $CD$ $x$ and $HD$ $y$, then drew $OB$ and $OF$, then did the Pythagorean theorem to try to get $x^2+y^2$ but I didn't have much luck with that.





Let $OD=c$ and the side lengths of the two squares $a$ and $b$. From right triangles OAB and OHF,
$$r^2=a^2+(a-c)^2;\>\>\>\>\> r^2=b^2+(b+c)^2$$
Eliminate $c$ to get,
$$a-\sqrt{r^2-a^2}=\sqrt{r^2-b^2}-b$$
Square both sides,
$$a\sqrt{ r^2-a^2} =b\sqrt{r^2-b^2}$$
Square again and rearrange,
$$r^2(a^2-b^2)=a^4-b^4$$
Thus, the sum of the two areas is
$$a^2+b^2=r^2=64$$