In triangle $ABC,$ $\angle B = 90^\circ.$ Semicircles are constructed on sides $\overline{AB},$ $\overline{AC},$ and $\overline{BC},$ as shown below. If AB = 3 and BC = 4, then find AC.