The diagram shows a rectangle with side lenths $4$ and $8$ and a square with side length $5$. Three vertices of the square lie on three different sides of the rectangle, as shown. If the area of the shaded region inside the square and the rectangle is $A$, then find $\dfrac85A$.
My method:
By the Pythagorean theorem, $EG=\sqrt{5^2-4^2}=3$ .
By trigonometry:
$$\tan{\theta}=\frac{4-x}{z}=\frac34 \tag{1}$$
$$\tan{\theta}=\frac34 \implies \cos{\theta}=\frac45 , \sin{\theta}=\frac35$$
$$BG=z=5\cos{\theta} \implies AE=5-z=5(1-\cos{\theta})=10\sin^2{\frac{\theta}{2}}$$
Solving for $\sin^2{\frac{\theta}{2}}$ from $\sin{\theta}=\dfrac35$:
$$\sin^2{\frac{\theta}{2}}=\frac{1}{10}$$
$$\therefore 5-z=AE=10 \cdot \frac{1}{10} =1 \implies z=4$$
Substituting this into $({1}):$
$$\frac{4-x}{4}=\frac34 \implies x=1$$
$$\therefore \text{ Shaded Area}=[GFH]+[FHC]-[JCH]$$
The red and blue angles are same; hence $JC=\frac34$.
Hence:
$$\text{Shaded Area}=[GFH]+[FHC]-[JCH]=\frac{25+1}{2}-\frac12 \cdot \frac34 =\frac{125}{8}$$
Hence $\dfrac{8A}{5}=25.$
What are other ways to determine the area?




