Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>In $\triangle A B C, \overline{B D}$ is a median. If $A D=3 x+5$ and $C D=5 x-1$, find  AC .