In right triangle $ABC$, we have $\angle BAC = 90^\circ$ and $D$ is on $\overline{AC}$ such that $\overline{BD}$ bisects $\angle ABC$. If $AB = 12$ and $BC = 15$, then what is $\cos \angle BDC$?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
In right triangle $ABC$, we have $\angle BAC = 90^\circ$ and $D$ is on $\overline{AC}$ such that $\overline{BD}$ bisects $\angle ABC$. If $AB = 12$ and $BC = 15$, then what is $\cos \angle BDC$?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
-\frac{\sqrt{10}}{10}
In right triangle $ABC$, we have $\angle BAC = 90^\circ$ and $D$ is on $\overline{AC}$ such that $\overline{BD}$ bisects $\angle ABC$. If $AB = 12$ and $BC = 15$, then what is $\cos \angle BDC$?
train