BuliderBoi....
That definition only works in RIGHT TRIANGLES
to solve this problem you will need to use the Law of Cosines
c^2 = a^2 + b^2 - 2ab cos (angle c)
For cos A
8^2 = 9^2 + 5^2 - 2(9)(5) cos A then solve for cos A The others are similar .....