In general, if you are given a system with some a and b like
$x + y + z = a $
$x + 2z= b$
$x + ay + z=b$
And asked to find the values a and b such that the system has no solution, infinitely many solutions, or a one solution what would be the constraints when row reducing the augmented matrix (ie you can't divide by something, etc.). For the problem above I did row operations on the augmented until I reached here
($ \begin{matrix} 1 & 0 & 1 & b \\ 0 & 1 & -2 & a-b \\ 0 & 0 & 2a & ab-a^2\\\end{matrix}$)