Given triangle $ABC,$ there exists a unique point $P$ such that
\[AB^2 + AP^2 + BP^2 = AC^2 + AP^2 + CP^2 = BC^2 + BP^2 + CP^2.\]Express the common value above in terms of the side lengths $a,$ $b,$ and $c,$ and circumradius $R$ of triangle $ABC.$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Given triangle $ABC,$ there exists a unique point $P$ such that
\[AB^2 + AP^2 + BP^2 = AC^2 + AP^2 + CP^2 = BC^2 + BP^2 + CP^2.\]Express the common value above in terms of the side lengths $a,$ $b,$ and $c,$ and circumradius $R$ of triangle $ABC.$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
32R^2 - 3(a^2 + b^2 + c^2)
Given triangle $ABC,$ there exists a unique point $P$ such that
\[AB^2 + AP^2 + BP^2 = AC^2 + AP^2 + CP^2 = BC^2 + BP^2 + CP^2.\]Express the common value above in terms of the side lengths $a,$ $b,$ and $c,$ and circumradius $R$ of triangle $ABC.$
train