In triangle ABC, ∠B=90∘. Semicircles are constructed on sides ¯AB, ¯AC, and ¯BC, as shown below. If AB = 3 and BC = 4, then find AC.