Let's call the side adjacent to the 27° angle 'y'. We can use the tangent function:
tan(27°) = x / y
y = x / tan(27°)
We know that y + 300 constitutes the entire length of the base of the larger triangle. We can also express this base in terms of x using the 54° angle:
tan(54°) = x / (y + 300)
Substitute the expression for y from Step 1 into the equation from Step 2:
tan(54°) = x / (x / tan(27°) + 300)
Now, solve for x:
x = tan(54°) * (x / tan(27°) + 300)
x = x * tan(54°) / tan(27°) + 300 * tan(54°)
x - x * tan(54°) / tan(27°) = 300 * tan(54°)
x * (1 - tan(54°) / tan(27°)) = 300 * tan(54°)
x = (300 * tan(54°)) / (1 - tan(54°) / tan(27°))
x ≈ (300 * 1.37638) / (1 - 1.37638 / 0.50953)
x ≈ 412.914 / (1 - 2.7013)
x ≈ 412.914 / -1.7013
x ≈ -242.67
Since length cannot be negative, there was a calculation error with the signs: the bottom term in the final fraction should have been flipped due to the earlier subtraction. Hence:
x = (300 * tan(54°)) / (tan(54°) / tan(27°) - 1)
x ≈ 152.74