In a right triangle ABC, ∠B = 90°. (a) If AB = 6 cm, BC = 8 cm, find AC. (b) If AC = 13 cm, BC = 5 cm, find AB.