So, \[-1\text{ }+\text{ }a\text{ }=\text{ }a\text{ }+\text{ }b\text{ }=\text{ }1\text{ }+\text{ }b\]
\[-1\text{ }+\text{ }a\text{ }=\text{ }a\text{ }+\text{ }b\text{ }and\text{ }1\text{ }+\text{ }b\text{ }=\text{ }a\text{ }+\text{ }b\]
We get, \[b\text{ }=\text{ }-1\text{ }and\text{ }1\text{ }+\text{ }-1\text{ }=\text{ }a\text{ }+\text{ }-1\Rightarrow a\text{ }=\text{ }1\]
Therefore, the value of \[a\text{ }=\text{ }1\text{ }and\text{ }b\text{ }=\text{ }-1\]