Ответ:

По теореме косинусов:

\(\cos B=\dfrac{AB^2+BC^2-AC^2}{2\cdot AB\cdot BC}\).

\(\cos B=\dfrac{5^2+7^2-9^2}{2\cdot5\cdot7}=\dfrac{25+49-81}{70}=-\dfrac{1}{10}\).

Ответ: \(-\dfrac{1}{10}\).