Here's the question: If the legs of the right triangle shown in the center of the figure have lengths a and b, find the area of the yellow region.
This is in terms of A and B. I'm particularly struggling to find how to find the areas of the non-right triangles.




Hint The area of the right triangle is obviously $$\frac{ab}{2}$$ And the areas of the squares are respectively (see: Pythagorean Theorem)$$a^2\qquad b^2\qquad a^2+b^2$$
Now use the fact that the area of a triangle can be expressed as $$\frac{ab\cdot \sin(\gamma)}{2}$$ in order to prove that the remeaning triangles all have the same area, namely $$\frac{ab}{2}$$ You can find several proofs here. I also posted a simple proof here to the first Lemma.
Thus the area of the yellow region is