Theo bài ra ta có:
\(a+b=3\left(a-b\right)=3a-3b.\)
\(\Leftrightarrow a+b+3b=3a\)
\(\Leftrightarrow a+4b=3a\)
\(\Leftrightarrow4b=3a-a=2a\)
\(\Rightarrow a=2b\)
Thay vào ta đươc:
\(2b:b=-\left(2b-b\right)\)
\(\Leftrightarrow2=-b\Rightarrow b=-2\)
\(\Rightarrow a=\left(-2\right).2=-4\)
Vậy \(a=-4;b=-2.\)