We have a triangle $\triangle ABC$ and a point $K$ on segment $\overline{BC}$ such that $AK$ is an altitude to $\triangle ABC$. If $AK = 6,$ $BK = 8$, and $CK = 6,$ then what is the perimeter of the triangle?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
We have a triangle $\triangle ABC$ and a point $K$ on segment $\overline{BC}$ such that $AK$ is an altitude to $\triangle ABC$. If $AK = 6,$ $BK = 8$, and $CK = 6,$ then what is the perimeter of the triangle?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
24 + 6\sqrt{2}
We have a triangle $\triangle ABC$ and a point $K$ on segment $\overline{BC}$ such that $AK$ is an altitude to $\triangle ABC$. If $AK = 6,$ $BK = 8$, and $CK = 6,$ then what is the perimeter of the triangle?
train