For a system of three linear equations in the three unknowns x,y,z to possess infinitely many solutions, the three equations must be linearly dependent. In other words, one of the equations must be obtainable as a linear combination of the other two, and this same combination must reproduce the corresponding constant term on the right hand side. We therefore assume that suitable real numbers c1 and c2 exist such that
c1(x−2y+3z)+c2(2x+y+z)=x−7y+az
and simultaneously
c1(9)+c2(b)=24.
We now equate coefficients of x,y,z one by one. Starting with the x-coefficients, we have
c1⋅1+c2⋅2=1,so c1+2c2=1.−(1)
Next, comparing the y-coefficients gives
c1⋅(−2)+c2⋅1=−7,so −2c1+c2=−7.−(2)
From equations (1) and (2) we solve for c1 and c2. Using (1) to express c1, we get
c1=1−2c2.
Substituting this in (2) yields
−2(1−2c2)+c2=−7⟹−2+4c2+c2=−7⟹5c2=−5⟹c2=−1.
Putting c2=−1 back into c1=1−2c2 gives
c1=1−2(−1)=1+2=3.
Now we equate the z-coefficients. From the assumed dependence we have
c1⋅3+c2⋅1=a,i.e. 3c1+c2=a.−(3)
Substituting c1=3 and c2=−1 into (3) gives
3(3)+(−1)=9−1=8,
so
a=8.
Finally, the constant terms must also match, so we impose
c1⋅9+c2⋅b=24.−(4)
Substituting c1=3 and c2=−1 in (4) yields
3⋅9+(−1)⋅b=24⟹27−b=24⟹b=3.
Therefore
a−b=8−3=5.
So, the answer is 5.