\(\left\{{}\begin{matrix}\dfrac{a+b}{6}=\dfrac{b+c}{5}\\\dfrac{a+b}{6}=\dfrac{c+a}{7}\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}b=\dfrac{a}{2}\\c=\dfrac{3a}{4}\end{matrix}\right.\)
\(cosA=\dfrac{b^2+c^2-a^2}{2bc}=\dfrac{\dfrac{a^2}{4}+\dfrac{9a^2}{16}-a^2}{2.\dfrac{a}{2}.\dfrac{3a}{4}}=-\dfrac{1}{4}\)
\(cosB=\dfrac{a^2+c^2-b^2}{2ac}=\dfrac{a^2+\dfrac{9a^2}{16}-\dfrac{a^2}{4}}{2a.\dfrac{3a}{4}}=\dfrac{7}{8}\)
\(cosC=\dfrac{a^2+b^2-c^2}{2ab}=\dfrac{11}{16}\)
\(P=-\dfrac{1}{4}+\dfrac{14}{8}+\dfrac{44}{16}=\dfrac{17}{4}\)