Relationship between two triangle side lengths where one other side is shared This question was asked on an Australian year 10 (15 to 16 year olds) practice exam.
Diagram of two triangles with sides a and b indicated:

"Determine the relationship between the values of $a$ and $b$ by writing $a$ in terms of $b$". The solution given was simply the following.
$a=\dfrac{b}{b \sqrt 3 - 1} \tag{1}\label{1}$
My attempt to solve this used the cosine rule on each of the two smaller triangles to get the side length opposite the $30°$ angle, then on the larger triangle for the side length opposite the $60°$ angle, giving the following relationship between a and b.
$\left(\sqrt{a^2 + 1 - a \sqrt 3} + \sqrt{b^2 + 1 - b \sqrt 3}\right)^2 = a^2 + b^2 - ab \tag{2}\label{2}$
However I was not able to simplify (\ref{2}) to get equation (\ref{1}).
My question is:

*

*How can equation (\ref{2}) be simplified to give equation (\ref{1}) using algebra that is accessible to a high school student?

*Is there another way, perhaps using other trigonometric identities, that does not use the form of (\ref{2})?


I would like to further add that this problem can be solved fairly simply using the method below:

1.) First, we label the triangle $\triangle ABC$ with a point $D$ that lies on $AC$ for our ease. We can also labor $\angle ACB=\alpha$. Now, we draw a line $DE$ from $D$ onto a point $E$ that lies on $AB$, such that $DE\parallel BC$.
2.) This gives us an isosceles triangle $\triangle BED$ where $\angle EDB=\angle EBD=30^\circ$. We also know that $BE=ED$ as well, furthermore, we can calculate the length of $BE$ and/or $ED$ as we know the length of $BD$, there are multiple ways of doing this (law of cosines, dropping a perpendicular, etc...), but it's fairly trivial so I'll just use the result and say that $BE=ED=\frac{1}{\sqrt3}$. This also implies that the remaining line segment $EA=b-\frac{1}{\sqrt3}$ or $\frac{b\sqrt3 -1}{\sqrt3}$.
3.) With this information now, we can finish off the problem. Notice that $\triangle AED$ is similar to $\triangle ABC$ via the AAA property. In that case, we can use the Thales theorem and say that:
$$\frac{1}{a\sqrt3}=\frac{b\sqrt3 -1}{b\sqrt3}$$
$$\frac{1}{a}=\frac{b\sqrt3 -1}{b}$$
Now we can just "flip" the expressions and get the desired result:
$$a=\frac{b}{b\sqrt3 -1}$$
To answer your "first" question, it may be possible to simplify that algebraic expression and find an equation for $b$ in terms of $a$, but as you stated too, this is not something that would typically be expected of a high-schooler. Even if you can simplify it, its simply not an efficient way to solve the problem.
