a, \(sin\left(A\right)=\dfrac{BC}{AC}\Leftrightarrow sin\left(40^o\right)=\dfrac{BC}{8}\Leftrightarrow BC\approx5,14\left(cm\right)\)
\(cos\left(A\right)=\dfrac{AB}{AC}\Leftrightarrow cos\left(40^o\right)=\dfrac{AB}{8}\Leftrightarrow AB\approx6,12\left(cm\right)\)
b,
\(cotg\left(C\right)=\dfrac{BC}{AB}\Leftrightarrow\dfrac{1}{\sqrt{3}}=\dfrac{BC}{5}\Leftrightarrow BC=\dfrac{5\sqrt{3}}{3}\left(cm\right)\)
\(AC^2=AB^2+BC^2\Leftrightarrow AC=\sqrt{AB^2+BC^2}=\sqrt{5^2+\left(\dfrac{5\sqrt{3}}{3}\right)^2}=\dfrac{10\sqrt{3}}{3}\left(cm\right)\)