A triangle has vertices at A(6,8), B(0,0), and C(16,0). A square is inscribed in triangle ABC so that one side of the square aligns with side AB. Find the side length of the square.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BC = 16
AB = sqrt(82 + 62) = 10
AC = sqrt(82 + 102) = √164
Use the law of cosine to calculate ∠ABC and ∠BAC
Use this formula to find "a" (a / tan∠BAC) + a + (a / tan∠ABC) = AB