# How can I calculate the angles of two RA triangles with a shared common hypotenuse?

I have two RA triangles with a shared common hypotenuse. Given the lengths of the adjacent sides of the two right angle triangles, a1 and a2, and the sum of both angles, theta, how can I calculate each angle, theta1 and theta2?

shared hypotenuse http://www.evobox.com/SharedHypotenuse.png

Obviously each angle is inversely proportionate to the length of adjacent sides, and when each side is equal the two angles are equal and half the sum of both angles. When the sides are unequal so are the angles but the relationship is non-linear. So how do I calculate each angle?

$\cos\theta_1 = \dfrac{a_1}{c}$.
Now we have $\theta_2$, we have $\theta_1 = \theta - \theta_2$.
• A minor improvement:- $θ_1 = θ - θ_2$ – Mick Jul 3 '14 at 15:00