In triangle $ABC$, $AB = 5$, $BC = 8$, and the length of median $AM$ is 4.  Find $AC$.The answer is in the form k\sqrt{m}+n,. Please provide the value of k + m + n.

Let's think step by step and output the final answer within \boxed{}.
user