You have to apply the law of cosine
In a triangle ABC
The square of a side is equal to the sum of the square of the 2 other sides minus twice the cos of the angle opposed to the side AB
AB = 10. BC = 5 AND AC = 8
Let C the angle facing AB, B, facing AC and A facing BC
AB² = BC² + AC² - 2.BC.AC.cos² C. Now plug
10² = 8² + 5² - 2(8)(5).cos C
100 = 64 + 25 - 80 cos C
80cos C = -11; cos C =-11/80 = - 0.1375
cos C = - 0.1375 . To find the angle C, let's use the inverse function
coc C = -0.1375 and cos⁻¹ (-0.1375) = So C = 98°
Follow the same procedure for the other angle. And when you have got 2 angles, you will find the 3rd one
If you need further explanation, I will be on line for about 15 min max