Use the given information to find the lengths of the other two sides of the right triangle if side a is opposite angle A, side b is opposite angle B, and side c is the hypotenuse.
cos(B) = 4/5, a = 8