\(a.\)
\(\dfrac{x}{2}=\dfrac{y}{5}=\dfrac{x+y}{2+5}=\dfrac{-14}{7}=-2\)
\(\Rightarrow\left\{{}\begin{matrix}x=\left(-2\right)\cdot2=-4\\y=\left(-2\right)\cdot5=-10\end{matrix}\right.\)
\(b.\)
\(\dfrac{x}{7}=\dfrac{y}{5}=\dfrac{x-y}{7-5}=\dfrac{8}{2}=4\)
\(\Rightarrow\left\{{}\begin{matrix}x=4\cdot7=28\\y=5\cdot4=20\end{matrix}\right.\)